zephyr/arch/x86
Andrew Boie dac61f450d x86: fix trampoline stack clobber
We need to lock interrupts before setting the thread's
stack pointer to the trampoline stack. Otherwise, we
could unexpectedly take an interrupt on this stack
instead of the thread stack as intended.

The specific problem happens at the end of the interrupt,
when we switch back to the thread stack and call swap.
Doing this on a per-cpu trampoline stack instead of the
thread stack causes data corruption.

Fixes: #24869

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
2020-05-01 11:43:57 -07:00
..
core x86: fix trampoline stack clobber 2020-05-01 11:43:57 -07:00
include
CMakeLists.txt
gen_gdt.py
gen_idt.py
ia32.cmake
intel64.cmake
Kconfig