Date: Tue, 16 Mar 2010 15:52:38 +0000 (UTC) From: Nathan Whitehorn <nwhitehorn@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r205212 - projects/ppc64/sys/powerpc/aim Message-ID: <201003161552.o2GFqcIu026513@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003161552.o2GFqcIu026513>