patch-2.2.18 linux/arch/arm/boot/compressed/head-netwinder.S
Next file: linux/arch/arm/boot/compressed/head-sa1100.S
Previous file: linux/arch/arm/boot/compressed/Makefile
Back to the patch index
Back to the overall index
- Lines: 32
- Date:
Fri Sep 15 23:28:37 2000
- Orig file:
v2.2.17/arch/arm/boot/compressed/head-netwinder.S
- Orig date:
Thu Jan 1 01:00:00 1970
diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.17/arch/arm/boot/compressed/head-netwinder.S linux/arch/arm/boot/compressed/head-netwinder.S
@@ -0,0 +1,31 @@
+ .section ".start", #alloc, #execinstr
+
+ adr r2, 1f
+ ldmdb r2, {r7, r8}
+ and r3, r2, #0xc000
+ teq r3, #0x8000
+ beq 2f
+ bic r3, r2, #0xc000
+ orr r3, r3, #0x8000
+ mov r0, r3
+ mov r4, #64
+ sub r5, r8, r7
+ b 1f
+
+ .word _start
+ .word __bss_start
+
+1:
+ .rept 4
+ ldmia r2!, {r6, r7, r8, r9}
+ stmia r3!, {r6, r7, r8, r9}
+ .endr
+ subs r4, r4, #64
+ bcs 1b
+ movs r4, r5
+ mov r5, #0
+ mov r1, #5 @ only here to fix NeTTroms which dont set r1
+ movne pc, r0
+
+ mov r0, #0
+2:
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)