Skip to content

Commit

Permalink
[PATCH] powerpc: correct cacheflush loop in zImage
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Olaf Hering authored and Paul Mackerras committed Mar 16, 2006
1 parent 0a45d44 commit eacb196
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions arch/powerpc/boot/crt0.S
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,16 @@ _zimage_start:
bdnz 2b

/* Do a cache flush for our text, in case OF didn't */
3: lis r9,_start@h
3: lis r9,_start@ha
addi r9,r9,_start@l
add r9,r0,r9
lis r8,_etext@ha
addi r8,r8,_etext@l
add r8,r0,r8
4: dcbf r0,r9
icbi r0,r9
addi r9,r9,0x20
cmplwi 0,r9,8
cmplw cr0,r9,r8
blt 4b
sync
isync
Expand Down

0 comments on commit eacb196

Please sign in to comment.