Commit 5998a3cf authored by Haavard Skinnemoen's avatar Haavard Skinnemoen

[AVR32] Fix wrong pt_regs in critical exception handler

It's not like it really matters at this point since the system is
dying anyway, but handle_critical pushes too few registers on the
stack so the register dump, which makes the register dump look a bit
strange. This patch fixes it.
Signed-off-by: default avatarHaavard Skinnemoen <hskinnemoen@atmel.com>
parent 68ca3e53
...@@ -316,8 +316,8 @@ save_full_context_ex: ...@@ -316,8 +316,8 @@ save_full_context_ex:
/* Low-level exception handlers */ /* Low-level exception handlers */
handle_critical: handle_critical:
pushm r12 sub sp, 4
pushm r0-r12 stmts --sp, r0-lr
rcall save_full_context_ex rcall save_full_context_ex
mfsr r12, SYSREG_ECR mfsr r12, SYSREG_ECR
mov r11, sp mov r11, sp
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment