patch-2.4.22 linux-2.4.22/arch/ppc/boot/common/crt0.S
Next file: linux-2.4.22/arch/ppc/boot/common/misc-common.c
Previous file: linux-2.4.22/arch/ppc/boot/common/Makefile
Back to the patch index
Back to the overall index
- Lines: 28
- Date:
2003-08-25 04:44:40.000000000 -0700
- Orig file:
linux-2.4.21/arch/ppc/boot/common/crt0.S
- Orig date:
2003-06-13 07:51:31.000000000 -0700
diff -urN linux-2.4.21/arch/ppc/boot/common/crt0.S linux-2.4.22/arch/ppc/boot/common/crt0.S
@@ -34,9 +34,9 @@
## Flush and invalidate the caches for the range in memory covering
## the .text section of the boot loader
-
+
lis r9,_start@h # r9 = &_start
- lis r8,_etext@ha #
+ lis r8,_etext@ha #
addi r8,r8,_etext@l # r8 = &_etext
3: dcbf r0,r9 # Flush the data cache
icbi r0,r9 # Invalidate the instruction cache
@@ -50,12 +50,12 @@
lis r7,_end@ha
addi r7,r7,_end@l # r7 = &_end
- lis r8,__bss_start@ha #
+ lis r8,__bss_start@ha #
addi r8,r8,__bss_start@l # r8 = &_bss_start
## Determine how large an area, in number of words, to clear
-
- subf r7,r8,r7 # r7 = &_end - &_bss_start + 1
+
+ subf r7,r8,r7 # r7 = &_end - &_bss_start + 1
addi r7,r7,3 # r7 += 3
srwi. r7,r7,2 # r7 = size in words.
beq 2f # If the size is zero, do not bother
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)