@@ -135,8 +135,9 @@ skpinv: addi r4,r4,1 /* Increment */
lis r3,PAGE_OFFSET@h
ori r3,r3,PAGE_OFFSET@l
- /* Kernel is at the base of RAM */
- li r4, 0 /* Load the kernel physical address */
+ /* Kernel is at PHYSICAL_START */
+ lis r4,PHYSICAL_START@h
+ ori r4,r4,PHYSICAL_START@l
/* Load the kernel PID = 0 */
li r0,0
@@ -94,7 +94,7 @@ unsigned long __init mmu_mapin_ram(void)
/* Pin in enough TLBs to cover any lowmem not covered by the
* initial 256M mapping established in head_44x.S */
- for (addr = PPC_PIN_SIZE; addr < lowmem_end_addr;
+ for (addr = PHYSICAL_START + PPC_PIN_SIZE; addr < lowmem_end_addr;
addr += PPC_PIN_SIZE)
ppc44x_pin_tlb(addr + PAGE_OFFSET, addr);