From 794bad6548d1df744c522faf072c8846f8f5a706 Mon Sep 17 00:00:00 2001 From: Rui Paulo Date: Sat, 25 Aug 2012 00:47:55 +0000 Subject: [PATCH] Set mdp only under #ifdef WII. --- sys/powerpc/aim/machdep.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/powerpc/aim/machdep.c b/sys/powerpc/aim/machdep.c index b5ead6121a98..55b2e0ae1f98 100644 --- a/sys/powerpc/aim/machdep.c +++ b/sys/powerpc/aim/machdep.c @@ -60,6 +60,7 @@ __FBSDID("$FreeBSD$"); #include "opt_compat.h" #include "opt_ddb.h" #include "opt_kstack_pages.h" +#include "opt_platform.h" #include #include @@ -268,6 +269,7 @@ powerpc_init(vm_offset_t startkernel, vm_offset_t endkernel, 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_offset_t endkernel, vers = mfpvr(); if ((vers & 0xfffff0e0) == (MPC750 << 16 | MPC750CL)) mdp = NULL; +#endif /* * Parse metadata if present and fetch parameters. Must be done