The wrong register was loaded into MD_RPN.

Signed-off-by: Joakim Tjernlund <joakim.tjernl...@transmode.se>
---
 arch/ppc/kernel/head_8xx.S |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/ppc/kernel/head_8xx.S b/arch/ppc/kernel/head_8xx.S
index b3aff21..9d8a1b5 100644
--- a/arch/ppc/kernel/head_8xx.S
+++ b/arch/ppc/kernel/head_8xx.S
@@ -848,13 +848,13 @@ initial_mmu:
        mtspr   MD_TWC, r9
        li      r11, MI_BOOTINIT        /* Create RPN for address 0 */
        addis   r11, r11, 0x0080        /* Add 8M */
-       mtspr   MD_RPN, r8
+       mtspr   MD_RPN, r11
 
        addis   r8, r8, 0x0080          /* Add 8M */
        mtspr   MD_EPN, r8
        mtspr   MD_TWC, r9
        addis   r11, r11, 0x0080        /* Add 8M */
-       mtspr   MD_RPN, r8
+       mtspr   MD_RPN, r11
 #endif
 
        /* Since the cache is enabled according to the information we
-- 
1.7.3.4

_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

Reply via email to