zephyr/arch/arm/include/aarch32
Ioannis Glaropoulos 4338552175 arch: arm: cortex-m: introduce custom switch to main function
For the case of building Zephy with no-multithreading
support (CONFIG_MULTITHREADING=n) we introduce a
custom (ARCH-specific) function to switch to main()
from cstart(). This is required, since the Cortex-M
initialization code is temporarily using the interrupt
stack and main() should be using the z_main_stack,
instead. The function performs the PSP switching,
the PSPLIM setting (for ARMv8-M), FPU initialization
and static memory region initialization, to mimic
what the normal (CONFIG_MULTITHREADING=y) case does.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
2020-08-07 13:06:04 +02:00
..
cortex_a_r aarch32: fix a build failure 2020-05-08 13:59:17 -05:00
cortex_m kernel: z_interrupt_stacks are now kernel stacks 2020-07-30 21:11:14 -04:00
cortex_r arch: arm: aarch32: Add header shims for cortex_a_r renaming 2020-03-26 11:20:36 +01:00
kernel_arch_func.h arch: arm: cortex-m: introduce custom switch to main function 2020-08-07 13:06:04 +02:00
offsets_short_arch.h kconfig: Rename CONFIG_FP_SHARING to CONFIG_FPU_SHARING 2020-05-08 10:58:33 +02:00