diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2002-02-05 18:34:40 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2002-02-05 18:34:40 +0000 |
commit | 80807a820863acbe9e7a8e97d90a122154c92174 (patch) | |
tree | ddb4617cf52b9f6355ac4e519266ce184e523d64 /sys/arch/sparc64/include/pmap.h | |
parent | 7d84752ac322dea0df5c2f3dc674aef52daea8a7 (diff) |
Implement vgafb_mmap() fully
From NetBSD: change bus_space_mmap() prototype to standard one
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)); |