diff options
author | Michael Neuling <mikey@neuling.org> | 2007-12-06 01:24:48 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-12-10 21:45:56 -0500 |
commit | 584f8b71a2e8abdaeb4b6f4fddaf542b61392453 (patch) | |
tree | c14f26334e3a3524046f0790f96564a4a4f22d92 /arch/powerpc/xmon | |
parent | 44ef339073f67d4abcc62ae52a5fbc069d7a4d29 (diff) |
[POWERPC] Use SLB size from the device tree
Currently we hardwire the number of SLBs to 64, but PAPR says we
should use the ibm,slb-size property to obtain the number of SLB
entries. This uses this property instead of assuming 64. If no
property is found, we assume 64 entries as before.
This soft patches the SLB handler, so it shouldn't change performance
at all.
Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/xmon')
-rw-r--r-- | arch/powerpc/xmon/xmon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c index 381d467cf55b..c60d123e9f1f 100644 --- a/arch/powerpc/xmon/xmon.c +++ b/arch/powerpc/xmon/xmon.c | |||
@@ -2543,7 +2543,7 @@ static void dump_slb(void) | |||
2543 | 2543 | ||
2544 | printf("SLB contents of cpu %x\n", smp_processor_id()); | 2544 | printf("SLB contents of cpu %x\n", smp_processor_id()); |
2545 | 2545 | ||
2546 | for (i = 0; i < SLB_NUM_ENTRIES; i++) { | 2546 | for (i = 0; i < mmu_slb_size; i++) { |
2547 | asm volatile("slbmfee %0,%1" : "=r" (tmp) : "r" (i)); | 2547 | asm volatile("slbmfee %0,%1" : "=r" (tmp) : "r" (i)); |
2548 | printf("%02d %016lx ", i, tmp); | 2548 | printf("%02d %016lx ", i, tmp); |
2549 | 2549 | ||