zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.94k stars 6.65k forks source link

soc: intel_adsp/ace: put syscall helpers in vector code section #81738

Open dcpleung opened 3 days ago

dcpleung commented 3 days ago

This puts the syscall helpers into the vector code section, and is a tiny TLB optimization. Before this, worst case scenario is that there would 2 instruction TLB misses when both the syscall helpers and the vector code pages are not in TLB cache. With this change, there would be at most 1 instruction TLB miss as now the syscall helper and the vector code (which includes exception handling code and xtensa_do_syscall()) are now in the same page, and the same TLB entry.