Commit 0e9645df authored by Christophe Leroy's avatar Christophe Leroy Committed by Michael Ellerman

powerpc/8xx: Remove cpu dependent macro instructions from head_8xx

head_8xx is dedicated to 8xx so no need to use macros that
depends on the CPU
Signed-off-by: default avatarChristophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 4915349b
...@@ -123,7 +123,6 @@ turn_on_mmu: ...@@ -123,7 +123,6 @@ turn_on_mmu:
lis r0,start_here@h lis r0,start_here@h
ori r0,r0,start_here@l ori r0,r0,start_here@l
mtspr SPRN_SRR0,r0 mtspr SPRN_SRR0,r0
SYNC
rfi /* enables MMU */ rfi /* enables MMU */
/* /*
...@@ -170,7 +169,7 @@ turn_on_mmu: ...@@ -170,7 +169,7 @@ turn_on_mmu:
stw r1,0(r11); \ stw r1,0(r11); \
tovirt(r1,r11); /* set new kernel sp */ \ tovirt(r1,r11); /* set new kernel sp */ \
li r10,MSR_KERNEL & ~(MSR_IR|MSR_DR); /* can take exceptions */ \ li r10,MSR_KERNEL & ~(MSR_IR|MSR_DR); /* can take exceptions */ \
MTMSRD(r10); /* (except for mach check in rtas) */ \ mtmsr r10; \
stw r0,GPR0(r11); \ stw r0,GPR0(r11); \
SAVE_4GPRS(3, r11); \ SAVE_4GPRS(3, r11); \
SAVE_2GPRS(7, r11) SAVE_2GPRS(7, r11)
...@@ -915,10 +914,8 @@ start_here: ...@@ -915,10 +914,8 @@ start_here:
rfi rfi
/* Load up the kernel context */ /* Load up the kernel context */
2: 2:
SYNC /* Force all PTE updates to finish */
tlbia /* Clear all TLB entries */ tlbia /* Clear all TLB entries */
sync /* wait for tlbia/tlbie to finish */ sync /* wait for tlbia/tlbie to finish */
TLBSYNC /* ... on all CPUs */
/* set up the PTE pointers for the Abatron bdiGDB. /* set up the PTE pointers for the Abatron bdiGDB.
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment