summaryrefslogtreecommitdiffstats
path: root/cpu
diff options
context:
space:
mode:
authorHarald Welte <laforge@openmoko.org>2007-12-19 14:16:57 +0100
committerWolfgang Denk <wd@denx.de>2008-02-04 23:50:54 +0100
commita25f72f1f73a11de68251fb88c89991e202e68fa (patch)
treee4ff7bb7316e35cd44b226b57243dcaf66495ff4 /cpu
parentbe19bd5cd0f454b63298844a0b5377e029b2caad (diff)
downloadtalos-obmc-uboot-a25f72f1f73a11de68251fb88c89991e202e68fa.tar.gz
talos-obmc-uboot-a25f72f1f73a11de68251fb88c89991e202e68fa.zip
ARM: arm920t: Allow use of 'gd' pointer from IRQ
This patch allows us to use the 'gd' pointer (and thus environment and everything else associated with it) from interrupt context on arm920t. Signed-off-by: Harald Welte <laforge@openmoko.org>
Diffstat (limited to 'cpu')
-rw-r--r--cpu/arm920t/start.S10
1 files changed, 5 insertions, 5 deletions
diff --git a/cpu/arm920t/start.S b/cpu/arm920t/start.S
index aefcdd1552..ae86002a8f 100644
--- a/cpu/arm920t/start.S
+++ b/cpu/arm920t/start.S
@@ -329,12 +329,12 @@ cpu_init_crit:
.macro irq_save_user_regs
sub sp, sp, #S_FRAME_SIZE
stmia sp, {r0 - r12} @ Calling r0-r12
- add r8, sp, #S_PC
- stmdb r8, {sp, lr}^ @ Calling SP, LR
- str lr, [r8, #0] @ Save calling PC
+ add r7, sp, #S_PC
+ stmdb r7, {sp, lr}^ @ Calling SP, LR
+ str lr, [r7, #0] @ Save calling PC
mrs r6, spsr
- str r6, [r8, #4] @ Save CPSR
- str r0, [r8, #8] @ Save OLD_R0
+ str r6, [r7, #4] @ Save CPSR
+ str r0, [r7, #8] @ Save OLD_R0
mov r0, sp
.endm
OpenPOWER on IntegriCloud