summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/lm32/cpu_asm.S
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-04-06 21:23:51 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-04-06 21:23:51 +0000
commit504fadbb1a1eca7feccdd9f3b2dc810e1ab1ddbb (patch)
treecafcaa11fb578db3f1d6ecb2d7275e3cd2bf7e33 /cpukit/score/cpu/lm32/cpu_asm.S
parent2009-04-06 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-504fadbb1a1eca7feccdd9f3b2dc810e1ab1ddbb.tar.bz2
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)
Diffstat (limited to 'cpukit/score/cpu/lm32/cpu_asm.S')
-rw-r--r--cpukit/score/cpu/lm32/cpu_asm.S1
1 files changed, 1 insertions, 0 deletions
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