Commit 15b1624b authored by Michael Neuling's avatar Michael Neuling Committed by Michael Ellerman

powerpc: Use defines for __init_tlb_power[78]

Use defines for literals __init_tlb_power[78] rather than hand coding
them.
Signed-off-by: default avatarMichael Neuling <mikey@neuling.org>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent ce5732a2
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
#include <asm/ppc_asm.h> #include <asm/ppc_asm.h>
#include <asm/asm-offsets.h> #include <asm/asm-offsets.h>
#include <asm/cache.h> #include <asm/cache.h>
#include <asm/mmu-hash64.h>
/* Entry: r3 = crap, r4 = ptr to cputable entry /* Entry: r3 = crap, r4 = ptr to cputable entry
* *
...@@ -139,7 +140,7 @@ __init_HFSCR: ...@@ -139,7 +140,7 @@ __init_HFSCR:
* (invalidate by congruence class). P7 has 128 CCs., P8 has 512. * (invalidate by congruence class). P7 has 128 CCs., P8 has 512.
*/ */
__init_tlb_power7: __init_tlb_power7:
li r6,128 li r6,POWER7_TLB_SETS
mtctr r6 mtctr r6
li r7,0xc00 /* IS field = 0b11 */ li r7,0xc00 /* IS field = 0b11 */
ptesync ptesync
...@@ -150,7 +151,7 @@ __init_tlb_power7: ...@@ -150,7 +151,7 @@ __init_tlb_power7:
1: blr 1: blr
__init_tlb_power8: __init_tlb_power8:
li r6,512 li r6,POWER8_TLB_SETS
mtctr r6 mtctr r6
li r7,0xc00 /* IS field = 0b11 */ li r7,0xc00 /* IS field = 0b11 */
ptesync ptesync
......
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