svn commit: r239666 - head/sys/powerpc/aim
Rui Paulo
rpaulo at FreeBSD.org
Sat Aug 25 00:47:55 UTC 2012
Author: rpaulo
Date: Sat Aug 25 00:47:55 2012
New Revision: 239666
URL: http://svn.freebsd.org/changeset/base/239666
Log:
Set mdp only under #ifdef WII.
Modified:
head/sys/powerpc/aim/machdep.c
Modified: head/sys/powerpc/aim/machdep.c
==============================================================================
--- head/sys/powerpc/aim/machdep.c Fri Aug 24 22:04:16 2012 (r239665)
+++ head/sys/powerpc/aim/machdep.c Sat Aug 25 00:47:55 2012 (r239666)
@@ -60,6 +60,7 @@ __FBSDID("$FreeBSD$");
#include "opt_compat.h"
#include "opt_ddb.h"
#include "opt_kstack_pages.h"
+#include "opt_platform.h"
#include <sys/param.h>
#include <sys/proc.h>
@@ -268,6 +269,7 @@ powerpc_init(vm_offset_t startkernel, vm
trap_offset = 0;
cacheline_warn = 0;
+#ifdef WII
/*
* The Wii loader doesn't pass us any environment so, mdp
* points to garbage at this point. The Wii CPU is a 750CL.
@@ -275,6 +277,7 @@ powerpc_init(vm_offset_t startkernel, vm
vers = mfpvr();
if ((vers & 0xfffff0e0) == (MPC750 << 16 | MPC750CL))
mdp = NULL;
+#endif
/*
* Parse metadata if present and fetch parameters. Must be done
More information about the svn-src-head
mailing list