svn commit: r280892 - head/sys/powerpc/booke

Justin Hibbits jhibbits at FreeBSD.org
Tue Mar 31 05:29:46 UTC 2015


Author: jhibbits
Date: Tue Mar 31 05:29:44 2015
New Revision: 280892
URL: https://svnweb.freebsd.org/changeset/base/280892

Log:
  CCSRBAR_VA is mpc85xx-specific, so add guards, and include the proper header
  file for it.
  
  MFC after:	1 month

Modified:
  head/sys/powerpc/booke/machdep.c

Modified: head/sys/powerpc/booke/machdep.c
==============================================================================
--- head/sys/powerpc/booke/machdep.c	Tue Mar 31 05:26:30 2015	(r280891)
+++ head/sys/powerpc/booke/machdep.c	Tue Mar 31 05:29:44 2015	(r280892)
@@ -141,6 +141,10 @@ __FBSDID("$FreeBSD$");
 #include <dev/fdt/fdt_common.h>
 #include <dev/ofw/openfirm.h>
 
+#ifdef MPC85XX
+#include <powerpc/mpc85xx/mpc85xx.h>
+#endif
+
 #ifdef DDB
 #include <ddb/ddb.h>
 #endif
@@ -464,7 +468,9 @@ booke_init(uint32_t arg1, uint32_t arg2)
 	debugf(" arg3 mdp = 0x%08x\n", (u_int32_t)mdp);
 	debugf(" end = 0x%08x\n", (u_int32_t)end);
 	debugf(" boothowto = 0x%08x\n", boothowto);
+#ifdef MPC85XX
 	debugf(" kernel ccsrbar = 0x%08x\n", CCSRBAR_VA);
+#endif
 	debugf(" MSR = 0x%08x\n", mfmsr());
 #if defined(BOOKE_E500)
 	debugf(" HID0 = 0x%08x\n", mfspr(SPR_HID0));


More information about the svn-src-head mailing list