x86: fix stack traces on x86_64

Runtime stack traces (at least as currently implemented)
don't work on x86_64 normally as RBP is treated as a general-
purpose register. Depend on CONFIG_NO_OPTIMIZATIONS to enable
this on 64-bit.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2019-11-19 17:33:30 -08:00 committed by Anas Nashif
commit 1b45de8010
3 changed files with 21 additions and 6 deletions

View file

@ -274,4 +274,11 @@ config X86_DYNAMIC_IRQ_STUBS
endmenu
config X86_EXCEPTION_STACK_TRACE
bool
default y
depends on EXCEPTION_STACK_TRACE
help
Internal config to enable runtime stack traces on fatal exceptions.
endif # !X86_64