[OpenBIOS] [PATCH] ppc64: Don't set Kp bit on SLB

Andreas Färber andreas.faerber at web.de
Sat May 21 14:57:26 CEST 2011


Since QEMU 81762d6dd0d430d87024f2c83e9c4dcc4329fb7d (Clean up
PowerPC SLB handling code) we never got to the ppc64 OpenBIOS banner.

According to Alex' debugging this is due to the Kp bit being set.

The code was supposed to be a 1:1 translation of the old mtsrin
code, which did not set Kp bit. So don't set Kp bit with slbmte.

Cc: Alexander Graf <agraf at suse.de>
Cc: David Gibson <david at gibson.dropbear.id.au>
Signed-off-by: Andreas Färber <andreas.faerber at web.de>
---
 arch/ppc/qemu/ofmem.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/ppc/qemu/ofmem.c b/arch/ppc/qemu/ofmem.c
index 297e685..514d129 100644
--- a/arch/ppc/qemu/ofmem.c
+++ b/arch/ppc/qemu/ofmem.c
@@ -497,7 +497,7 @@ setup_mmu(unsigned long ramsize)
 
     slbia(); /* Invalidate all SLBs except SLB 0 */
     for (i = 0; i < 16; i++) {
-        unsigned long rs = ((0x400 + i) << 12) | (0x10 << 7);
+        unsigned long rs = ((0x400 + i) << 12) | (0x0 << 7);
         unsigned long rb = ((unsigned long)i << 28) | (1 << 27) | i;
         slbmte(rs, rb);
     }
-- 
1.7.3.4




More information about the OpenBIOS mailing list