svn commit: r328650 - head/sys/powerpc/aim
Nathan Whitehorn
nwhitehorn at FreeBSD.org
Thu Feb 1 05:28:03 UTC 2018
Author: nwhitehorn
Date: Thu Feb 1 05:28:02 2018
New Revision: 328650
URL: https://svnweb.freebsd.org/changeset/base/328650
Log:
Fix build on 32-bit PowerPC, broken in r328537.
Modified:
head/sys/powerpc/aim/mp_cpudep.c
Modified: head/sys/powerpc/aim/mp_cpudep.c
==============================================================================
--- head/sys/powerpc/aim/mp_cpudep.c Thu Feb 1 02:00:36 2018 (r328649)
+++ head/sys/powerpc/aim/mp_cpudep.c Thu Feb 1 05:28:02 2018 (r328650)
@@ -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;
}
More information about the svn-src-head
mailing list