From d4a7df2e65376c650fffbda334284eb7dfddd59a Mon Sep 17 00:00:00 2001 From: Nathan Whitehorn Date: Sun, 15 Jan 2012 16:58:44 +0000 Subject: [PATCH] Fix some unreliability problems related to MSR bits inherited from kboot by setting an absolute MSR when during on the MMU. This prevents delay(), in particular, from intermittently malfunctioning. --- sys/boot/powerpc/ps3/ps3mmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/boot/powerpc/ps3/ps3mmu.c b/sys/boot/powerpc/ps3/ps3mmu.c index a7005fb9e55..08dcf75d283 100644 --- a/sys/boot/powerpc/ps3/ps3mmu.c +++ b/sys/boot/powerpc/ps3/ps3mmu.c @@ -113,7 +113,7 @@ ps3mmu_init(int maxmem) "r"(1 << SLBV_VSID_SHIFT), "r"((1 << SLBE_ESID_SHIFT) | SLBE_VALID | 1)); - mtmsr(mfmsr() | PSL_IR | PSL_DR | PSL_RI | PSL_ME); + mtmsr(PSL_IR | PSL_DR | PSL_RI | PSL_ME); return (0); }