r1092 - trunk/src/target/u-boot/patches

laforge at sita.openmoko.org laforge at sita.openmoko.org
Sat Feb 24 03:27:51 CET 2007


Author: laforge
Date: 2007-02-24 03:27:50 +0100 (Sat, 24 Feb 2007)
New Revision: 1092

Added:
   trunk/src/target/u-boot/patches/uboot-arm920t-gd_in_irq.patch
Modified:
   trunk/src/target/u-boot/patches/series
Log:
add patch to use 'gd' from interrupt context


Modified: trunk/src/target/u-boot/patches/series
===================================================================
--- trunk/src/target/u-boot/patches/series	2007-02-24 00:33:39 UTC (rev 1091)
+++ trunk/src/target/u-boot/patches/series	2007-02-24 02:27:50 UTC (rev 1092)
@@ -24,6 +24,7 @@
 boot-from-ram-and-nand.patch
 wakeup-reason-nand-only.patch
 uboot-neo1973-resume.patch
+uboot-arm920t-gd_in_irq.patch
 
 # this will be somewhat more difficult
 nand-dynamic_partitions.patch

Added: trunk/src/target/u-boot/patches/uboot-arm920t-gd_in_irq.patch
===================================================================
--- trunk/src/target/u-boot/patches/uboot-arm920t-gd_in_irq.patch	2007-02-24 00:33:39 UTC (rev 1091)
+++ trunk/src/target/u-boot/patches/uboot-arm920t-gd_in_irq.patch	2007-02-24 02:27:50 UTC (rev 1092)
@@ -0,0 +1,28 @@
+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 at openmoko.org>
+
+Index: u-boot/cpu/arm920t/start.S
+===================================================================
+--- u-boot.orig/cpu/arm920t/start.S	2007-02-24 02:35:38.000000000 +0100
++++ u-boot/cpu/arm920t/start.S	2007-02-24 02:36:01.000000000 +0100
+@@ -474,12 +474,12 @@
+ 	.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
+ 





More information about the commitlog mailing list