blob: 4f62329d6d56aad06f9ee71be575df69cd15da7a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
/* $NetBSD: pmap.h,v 1.42 2022/05/07 07:10:46 rin 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
#define VM_MDPAGE_INIT(pg) __nothing
struct vm_page_md {
uintptr_t mdpg_dummy[5];
};
#endif /* !__HAVE_VM_PAGE_MD */
__CTASSERT(sizeof(struct vm_page_md) == sizeof(uintptr_t)*5);
#ifndef __HAVE_PMAP_PV_TRACK
/*
* We need empty stubs for modules shared with all sub-archs.
*/
#define __HAVE_PMAP_PV_TRACK
#define PMAP_PV_TRACK_ONLY_STUBS
#include <uvm/pmap/pmap_pvt.h>
#endif /* !__HAVE_PMAP_PV_TRACK */
#endif /* !LOCORE && (MODULAR || _MODULE) */
#endif /* !_POWERPC_PMAP_H_ */
|