From de80b963baf574b32661e153e01164aa6d8a5b44 Mon Sep 17 00:00:00 2001 From: Patrick Williams Date: Sat, 15 May 2010 10:45:43 -0500 Subject: Update relocation code based on PowerISA sample code. --- start.S | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/start.S b/start.S index 57495d212..58d0b7e8b 100644 --- a/start.S +++ b/start.S @@ -37,17 +37,17 @@ pre_relocate: ;// Moving 1MB , so load r2 with (1MB / 8 bytes per word) lis 2, 0x2 mtctr 2 -relocate_loop: +relocate_loop: + ;// The dcbst/sync/icbi/isync sequence comes from PowerISA ld 4, 0(1) std 4, 0(5) dcbst 0,5 sync icbi 0,5 - sync + isync addi 1,1,8 addi 5,5,8 bdnz+ relocate_loop - isync ;// Now that we've relocated, erase exception prefix. mfmsr 11 -- cgit v1.2.1