Fix build on 32-bit PowerPC, broken in r328537.

This commit is contained in:
nwhitehorn 2018-02-01 05:28:02 +00:00
parent 9e57d147a9
commit d079ae0442

View File

@ -85,15 +85,20 @@ cpudep_ap_early_bootstrap(void)
break;
case IBMPOWER8:
case IBMPOWER8E:
#ifdef __powerpc64__
if (mfmsr() & PSL_HV) {
isync();
/* Direct interrupts to SRR instead of HSRR and reset LPCR otherwise */
/*
* Direct interrupts to SRR instead of HSRR and
* reset LPCR otherwise
*/
mtspr(SPR_LPID, 0);
isync();
mtspr(SPR_LPCR, LPCR_LPES);
isync();
}
#endif
break;
}