ARM: Add r3 to clobber list when configuring stack guard
If you enable HW_STACK_PROTECTION, DEBUG_OPTIMIZATIONS, and CPU_STATS, you can get a crash when switching to the main thread due to the r3 getting munged during a inline ASM call. This patch fixes that by adding r3 to the clobber list. Fixes #12821 Signed-off-by: Andy Gross <andy.gross@linaro.org>
This commit is contained in:
parent
c96c90acf7
commit
4d2459e515
|
@ -125,7 +125,7 @@ _arch_switch_to_main_thread(struct k_thread *main_thread,
|
|||
"r"(_main), "r"(_thread_entry),
|
||||
"r"(main_thread)
|
||||
|
||||
: "r0", "r1", "sp"
|
||||
: "r0", "r1", "r3", "sp"
|
||||
);
|
||||
|
||||
CODE_UNREACHABLE;
|
||||
|
|
Loading…
Reference in a new issue