Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Jun 2011 14:23:36 +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: r222618 - head/sys/powerpc/aim
Message-ID:  <201106021423.p52ENadb021420@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



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