diff options
author | Olaf Hering <olh@suse.de> | 2006-03-04 07:15:40 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-03-16 00:54:57 -0500 |
commit | eacb1962d4594b9d382b40acd73a9c9492718f74 (patch) | |
tree | aae81be89d85c2bcf6abfca3d86b6ba0379fb39c /arch/powerpc/boot | |
parent | 0a45d4491d0f172e02126370f312405c5d473363 (diff) |
[PATCH] powerpc: correct cacheflush loop in zImage
Correct the loop for cacheflush. No idea where I copied the code from,
but the original does not work correct. Maybe the flush is not needed.
Signed-off-by: Olaf Hering <olh@suse.de>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/boot')
-rw-r--r-- | arch/powerpc/boot/crt0.S | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/powerpc/boot/crt0.S b/arch/powerpc/boot/crt0.S index e0192c26037b..70e65b13e033 100644 --- a/arch/powerpc/boot/crt0.S +++ b/arch/powerpc/boot/crt0.S | |||
@@ -45,7 +45,8 @@ _zimage_start: | |||
45 | bdnz 2b | 45 | bdnz 2b |
46 | 46 | ||
47 | /* Do a cache flush for our text, in case OF didn't */ | 47 | /* Do a cache flush for our text, in case OF didn't */ |
48 | 3: lis r9,_start@h | 48 | 3: lis r9,_start@ha |
49 | addi r9,r9,_start@l | ||
49 | add r9,r0,r9 | 50 | add r9,r0,r9 |
50 | lis r8,_etext@ha | 51 | lis r8,_etext@ha |
51 | addi r8,r8,_etext@l | 52 | addi r8,r8,_etext@l |
@@ -53,7 +54,7 @@ _zimage_start: | |||
53 | 4: dcbf r0,r9 | 54 | 4: dcbf r0,r9 |
54 | icbi r0,r9 | 55 | icbi r0,r9 |
55 | addi r9,r9,0x20 | 56 | addi r9,r9,0x20 |
56 | cmplwi 0,r9,8 | 57 | cmplw cr0,r9,r8 |
57 | blt 4b | 58 | blt 4b |
58 | sync | 59 | sync |
59 | isync | 60 | isync |