arch/x86: add support for CONFIG_STACK_SENTINEL

Apparently I missed the arch-dependent bit of this. Fixed.

Signed-off-by: Charles E. Youse <charles.youse@intel.com>
This commit is contained in:
Charles E. Youse 2019-07-24 12:30:14 -07:00 committed by Andrew Boie
commit 468cd4d98f

View file

@ -509,7 +509,11 @@ irq_dispatch:
cli
subq $CONFIG_ISR_STACK_SIZE, ist1
decl _kernel_offset_to_nested(%rsi)
jz __resume /* not nested, just __resume (might change threads) */
/* not nested, exit via __resume (might change threads) */
#ifdef CONFIG_STACK_SENTINEL
call z_check_stack_sentinel
#endif
jz __resume
irq_exit_nested:
fxrstor (%rsp)