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)
This commit is contained in:
Joel Sherrill
2009-04-06 21:23:51 +00:00
parent 69722ac959
commit 504fadbb1a
2 changed files with 6 additions and 0 deletions

View File

@@ -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

View File

@@ -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