0f7bbff050
The current mechanism of the MPU region switching configures and reprograms the regions (including inserting, splitting the dynamic region, and flushing the regions to the registers) every time during the context switch. This, not only causes a large usage of the kernel stack but also a lower performance. To improve it, move the configuration operations ahead to make sure the context swtich only flushes the current thread regions to the registers and does not configure the regions anymore. To achieve this, configure the regions during any operations related to partitions (partition add/remove, and domain add/remove thread), flush the sys_dyn_regions if the current thread is the privileged thread, and flush the thread's own regions if it's a user thread. Signed-off-by: Jaxson Han <jaxson.han@arm.com> |
||
---|---|---|
.. | ||
arm | ||
bcm_vk | ||
intel_socfpga | ||
nxp_imx | ||
nxp_layerscape | ||
qemu_cortex_a53 | ||
qemu_virt_arm64 | ||
renesas_rcar | ||
rockchip | ||
ti_k3 | ||
xenvm | ||
CMakeLists.txt | ||
Kconfig |