diff options
Diffstat (limited to 'sys/arch/sparc64/include/pmap.h')
-rw-r--r-- | sys/arch/sparc64/include/pmap.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/sparc64/include/pmap.h b/sys/arch/sparc64/include/pmap.h index 703e1f79b8c..81e368c8e8c 100644 --- a/sys/arch/sparc64/include/pmap.h +++ b/sys/arch/sparc64/include/pmap.h @@ -158,9 +158,9 @@ extern struct pmap kernel_pmap_; int pmap_count_res __P((pmap_t pmap)); /* int pmap_change_wiring __P((pmap_t pm, vaddr_t va, boolean_t wired)); */ -#define pmap_resident_count(pm) pmap_count_res((pm)) -#define pmap_from_phys_address(x,f) ((x)>>PGSHIFT) -#define pmap_phys_address(x) ((((paddr_t)(x))<<PGSHIFT)|PMAP_NC) +#define pmap_resident_count(pm) pmap_count_res((pm)) +#define pmap_from_phys_address(x,f) ((x)&~PGOFSET) +#define pmap_phys_address(x) (x) #define pmap_update(pm) /* nothing (yet) */ void pmap_bootstrap __P((u_long kernelstart, u_long kernelend, u_int numctx)); |