1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-31 12:13:10 +00:00

PowerNV: fix compilation on non-NV platforms

Submitted by:          Wojciech Macek <wma@semihalf.com>
Obtained from:         Semihalf
Sponsored by:          IBM, QCM Technologies
This commit is contained in:
Wojciech Macek 2018-01-31 06:42:01 +00:00
parent 3a8a081b9d
commit d32802f0c3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=328616

View File

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