- Remove unused definitions.

- Move a definition inside the scope of a #ifdef _KERNEL.
This commit is contained in:
alc 2004-06-23 08:06:52 +00:00
parent fb339cc205
commit 082a1c5c41
2 changed files with 4 additions and 10 deletions

View File

@ -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);

View File

@ -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);