diff options
Diffstat (limited to 'sys/sparc64/include/pmap.h')
-rw-r--r-- | sys/sparc64/include/pmap.h | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/sys/sparc64/include/pmap.h b/sys/sparc64/include/pmap.h index 8740007..1a57d0e 100644 --- a/sys/sparc64/include/pmap.h +++ b/sys/sparc64/include/pmap.h @@ -29,30 +29,36 @@ #ifndef _MACHINE_PMAP_H_ #define _MACHINE_PMAP_H_ -struct md_page { -}; +#include <sys/kobj.h> +#include <machine/tte.h> -struct pmap { - struct pmap_statistics pm_stats; -}; +#define PMAP_CONTEXT_MAX 8192 -typedef struct pmap *pmap_t; +#define pmap_resident_count(pm) (pm->pm_stats.resident_count) -extern struct pmap __kernel_pmap; -#define kernel_pmap (&__kernel_pmap) +typedef struct pmap *pmap_t; -#define pmap_resident_count(pm) (pm->pm_stats.resident_count) +struct md_page { +}; -#ifdef _KERNEL +struct pmap { + struct stte pm_stte; + u_int pm_active; + u_int pm_context; + u_int pm_count; + struct pmap_statistics pm_stats; +}; +void pmap_bootstrap(vm_offset_t skpa, vm_offset_t ekva); vm_offset_t pmap_kextract(vm_offset_t va); extern vm_offset_t avail_start; extern vm_offset_t avail_end; +extern vm_offset_t clean_eva; +extern vm_offset_t clean_sva; +extern struct pmap *kernel_pmap; extern vm_offset_t phys_avail[]; extern vm_offset_t virtual_avail; extern vm_offset_t virtual_end; -#endif - #endif /* !_MACHINE_PMAP_H_ */ |