diff options
author | Jake Burkholder <jake@FreeBSD.org> | 2001-07-31 06:05:05 +0000 |
---|---|---|
committer | Jake Burkholder <jake@FreeBSD.org> | 2001-07-31 06:05:05 +0000 |
commit | 89bf8575eeadb650aefa7fe48d0d9c9f58cd4d2a (patch) | |
tree | 09518e5a462c7f369bd3cbd7d956ad24588b2a9b /sys/sparc64/include/pmap.h | |
parent | 98bb5304e12e75a43230c686a5c7cb422d8f780d (diff) |
Notes
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 87400079c713a..1a57d0e147822 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_ */ |