Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Jan 2012 16:58:44 +0000 (UTC)
From:      Nathan Whitehorn <nwhitehorn@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r230140 - head/sys/boot/powerpc/ps3
Message-ID:  <201201151658.q0FGwirM091734@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nwhitehorn
Date: Sun Jan 15 16:58:44 2012
New Revision: 230140
URL: http://svn.freebsd.org/changeset/base/230140

Log:
  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.

Modified:
  head/sys/boot/powerpc/ps3/ps3mmu.c

Modified: head/sys/boot/powerpc/ps3/ps3mmu.c
==============================================================================
--- head/sys/boot/powerpc/ps3/ps3mmu.c	Sun Jan 15 16:57:18 2012	(r230139)
+++ head/sys/boot/powerpc/ps3/ps3mmu.c	Sun Jan 15 16:58:44 2012	(r230140)
@@ -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);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201151658.q0FGwirM091734>