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.
This commit is contained in:
nwhitehorn 2011-06-02 14:23:36 +00:00
parent 15ff71d515
commit 04c4ecf880

View File

@ -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;