mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-21 11:13:30 +00:00
Set mdp only under #ifdef WII.
This commit is contained in:
parent
c588600407
commit
794bad6548
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=239666
@ -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_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
|
||||
|
Loading…
Reference in New Issue
Block a user