svn commit: r205212 - projects/ppc64/sys/powerpc/aim
Nathan Whitehorn
nwhitehorn at FreeBSD.org
Tue Mar 16 15:52:38 UTC 2010
Author: nwhitehorn
Date: Tue Mar 16 15:52:38 2010
New Revision: 205212
URL: http://svn.freebsd.org/changeset/base/205212
Log:
Explicitly set the CPU to 64-bit mode on reset. This makes SMP come
up a little further on Apple hardware.
Submitted by: Andreas Tobler
Modified:
projects/ppc64/sys/powerpc/aim/trap_subr64.S
Modified: projects/ppc64/sys/powerpc/aim/trap_subr64.S
==============================================================================
--- projects/ppc64/sys/powerpc/aim/trap_subr64.S Tue Mar 16 15:50:31 2010 (r205211)
+++ projects/ppc64/sys/powerpc/aim/trap_subr64.S Tue Mar 16 15:52:38 2010 (r205212)
@@ -263,6 +263,13 @@ nslb:
*/
.globl CNAME(rstcode), CNAME(rstsize)
CNAME(rstcode):
+ /* Explicitly set MSR[SF] */
+ mfmsr %r9
+ li %r8,1
+ insrdi %r9,%r8,1,0
+ mtsmrd %r9
+ isync
+
ba cpu_reset
CNAME(rstsize) = . - CNAME(rstcode)
More information about the svn-src-projects
mailing list