diff options
Diffstat (limited to 'cpukit/score/cpu/lm32')
-rw-r--r-- | cpukit/score/cpu/lm32/ChangeLog | 5 | ||||
-rw-r--r-- | cpukit/score/cpu/lm32/cpu_asm.S | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/cpukit/score/cpu/lm32/ChangeLog b/cpukit/score/cpu/lm32/ChangeLog index 26aa15aaac..e4d7ed1c86 100644 --- a/cpukit/score/cpu/lm32/ChangeLog +++ b/cpukit/score/cpu/lm32/ChangeLog @@ -1,3 +1,8 @@ +2009-04-06 Michael Walle <michael@walle.cc> + + * cpu_asm.S: We cannot use any other register than r0 without saving + them to the stack. (_ISR_Handler clears r0 right at the beginning) + 2009-02-12 Joel Sherrill <joel.sherrill@oarcorp.com> * cpu.c, rtems/score/cpu.h: Change prototype of IDLE thread to diff --git a/cpukit/score/cpu/lm32/cpu_asm.S b/cpukit/score/cpu/lm32/cpu_asm.S index 9f0e12002d..80501bad1d 100644 --- a/cpukit/score/cpu/lm32/cpu_asm.S +++ b/cpukit/score/cpu/lm32/cpu_asm.S @@ -102,6 +102,7 @@ _CPU_Context_restore: .globl _ISR_Handler _ISR_Handler: + xor r0, r0, r0 addi sp, sp, -128 sw (sp+4), r1 sw (sp+8), r2 |