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:
Nathan Whitehorn 2011-06-02 14:23:36 +00:00
parent 0d7136ba72
commit 1dff98d9bb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=222618

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;