svn commit: r222618 - head/sys/powerpc/aim

Nathan Whitehorn nwhitehorn at FreeBSD.org
Thu Jun 2 14:23:37 UTC 2011


Author: nwhitehorn
Date: Thu Jun  2 14:23:36 2011
New Revision: 222618
URL: http://svn.freebsd.org/changeset/base/222618

Log:
  If running under a hypervisor, don't yell at the user about starting
  unknown CPU types, instead relying on the hypervisor to have given us a
  reasonable environment.

Modified:
  head/sys/powerpc/aim/mp_cpudep.c

Modified: head/sys/powerpc/aim/mp_cpudep.c
==============================================================================
--- head/sys/powerpc/aim/mp_cpudep.c	Thu Jun  2 14:22:00 2011	(r222617)
+++ head/sys/powerpc/aim/mp_cpudep.c	Thu Jun  2 14:23:36 2011	(r222618)
@@ -87,7 +87,6 @@ cpudep_ap_bootstrap(void)
 
 	msr = PSL_KERNSET & ~PSL_EE;
 	mtmsr(msr);
-	isync();
 
 	pcpup->pc_curthread = pcpup->pc_idlethread;
 	pcpup->pc_curpcb = pcpup->pc_curthread->td_pcb;
@@ -344,6 +343,10 @@ cpudep_ap_setup()
 
 		break;
 	default:
+#ifdef __powerpc64__
+		if (!(mfmsr() & PSL_HV)) /* Rely on HV to have set things up */
+			break;
+#endif
 		printf("WARNING: Unknown CPU type. Cache performace may be "
 		    "suboptimal.\n");
 		break;


More information about the svn-src-head mailing list