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;
        }
 
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to