commit a116d94e7f69f4757bc1cb8c178df0af06215645
parent b3d543198e48fb97bf0de16a191dcee186a4a5ab
Author: oblique <psyberbits@gmail.com>
Date: Wed, 31 Oct 2012 00:30:32 +0200
fix a bug in SAVE_ALL_EX
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/kernel/interrupts.S b/kernel/interrupts.S
@@ -44,9 +44,9 @@ vector_table:
str r0, [sp, #(4 * 13)] @ save sp (r13)
str r1, [sp, #(4 * 14)] @ save lr (r14)
@@ restore destroyed registers
- ldr r0, [sp, #4]
- ldr r1, [sp, #8]
- ldr r2, [sp, #12]
+ ldr r0, [sp]
+ ldr r1, [sp, #4]
+ ldr r2, [sp, #8]
.endm
@@ restore registers