From 504fadbb1a1eca7feccdd9f3b2dc810e1ab1ddbb Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 6 Apr 2009 21:23:51 +0000 Subject: 2009-04-06 Michael Walle * 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) --- cpukit/score/cpu/lm32/ChangeLog | 5 +++++ cpukit/score/cpu/lm32/cpu_asm.S | 1 + 2 files changed, 6 insertions(+) (limited to 'cpukit/score/cpu/lm32') 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 + + * 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 * 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 -- cgit v1.2.3