- Remove unused definitions.
- Move a definition inside the scope of a #ifdef _KERNEL.
This commit is contained in:
parent
fb339cc205
commit
082a1c5c41
@ -178,11 +178,6 @@ struct pmap {
|
||||
LIST_ENTRY(pmap) pm_list; /* list of all pmaps. */
|
||||
};
|
||||
|
||||
#define pmap_page_is_mapped(m) (!TAILQ_EMPTY(&(m)->md.pv_list))
|
||||
|
||||
#define PM_FLAG_LOCKED 0x1
|
||||
#define PM_FLAG_WANTED 0x2
|
||||
|
||||
typedef struct pmap *pmap_t;
|
||||
|
||||
#ifdef _KERNEL
|
||||
@ -210,6 +205,8 @@ extern vm_offset_t virtual_end;
|
||||
|
||||
struct vmspace;
|
||||
|
||||
#define pmap_page_is_mapped(m) (!TAILQ_EMPTY(&(m)->md.pv_list))
|
||||
|
||||
vm_offset_t pmap_steal_memory(vm_size_t);
|
||||
void pmap_bootstrap(vm_offset_t, u_int);
|
||||
void pmap_kenter(vm_offset_t va, vm_offset_t pa);
|
||||
|
@ -78,11 +78,6 @@ struct pmap {
|
||||
struct vm_page *pm_ptphint; /* pmap ptp hint */
|
||||
};
|
||||
|
||||
#define pmap_page_is_mapped(m) (!TAILQ_EMPTY(&(m)->md.pv_list))
|
||||
|
||||
#define PM_FLAG_LOCKED 0x1
|
||||
#define PM_FLAG_WANTED 0x2
|
||||
|
||||
typedef struct pmap *pmap_t;
|
||||
|
||||
#ifdef _KERNEL
|
||||
@ -107,6 +102,8 @@ extern vm_offset_t phys_avail[];
|
||||
extern vm_offset_t virtual_avail;
|
||||
extern vm_offset_t virtual_end;
|
||||
|
||||
#define pmap_page_is_mapped(m) (!TAILQ_EMPTY(&(m)->md.pv_list))
|
||||
|
||||
vm_offset_t pmap_steal_memory(vm_size_t);
|
||||
void pmap_bootstrap(void);
|
||||
void pmap_kenter(vm_offset_t va, vm_offset_t pa);
|
||||
|
Loading…
Reference in New Issue
Block a user