NetBSD/sys/arch/powerpc/include/pmap.h
matt 0a807611dd Readd powerpc/include/vmparam.h to the set lists
Export it to powerpc/include.h
Protect pmap.h and vmparam.h from getting an #error when included
from userland.
Export safe definitions of VM_MAXUSER_ADDRESS, VM_MIN_ADDRESS,
VM_MAX_ADDRESS when _RUMPKERNEL is defined.
2011-06-20 21:45:16 +00:00

44 lines
1023 B
C

/* $NetBSD: pmap.h,v 1.38 2011/06/20 21:45:16 matt Exp $ */
#ifndef _POWERPC_PMAP_H_
#define _POWERPC_PMAP_H_
#ifdef _KERNEL_OPT
#include "opt_ppcarch.h"
#include "opt_modular.h"
#endif
#if !defined(_MODULE)
#if defined(PPC_BOOKE)
#include <powerpc/booke/pmap.h>
#elif defined(PPC_IBM4XX)
#include <powerpc/ibm4xx/pmap.h>
#elif defined(PPC_OEA) || defined (PPC_OEA64) || defined (PPC_OEA64_BRIDGE)
#include <powerpc/oea/pmap.h>
#elif defined(_KERNEL)
#error unknown PPC variant
#endif
#endif /* !_MODULE */
#if !defined(_LOCORE) && (defined(MODULAR) || defined(_MODULE))
/*
* Both BOOKE and OEA use __HAVE_VM_PAGE_MD but IBM4XX doesn't so define
* a compatible vm_page_md so that struct vm_page is the same size for all
* PPC variants.
*/
#ifndef __HAVE_VM_PAGE_MD
#define __HAVE_VM_PAGE_MD
struct vm_page_md {
uintptr_t mdpg_dummy[5];
};
#endif /* !__HVE_VM_PAGE_MD */
__CTASSERT(sizeof(struct vm_page_md) == sizeof(uintptr_t)*5);
#endif /* !LOCORE && (MODULAR || _MODULE) */
#endif /* !_POWERPC_PMAP_H_ */