diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2010-12-26 15:41:01 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2010-12-26 15:41:01 +0000 |
commit | 55d0ea063b25d8b25fea5135f59de22437ecd4ea (patch) | |
tree | 42c739678ad68f903e06cc29eb0db1df3bf6298e /sys/arch/hppa64/include | |
parent | 47f20d782a94ebc11fb4c7b43294559377be4989 (diff) |
Kill pmap_phys_address(), and force every driver's mmap() routine to return
a physical address [more precisely, something suitable to pass to pmap_enter()'sphysical address argument].
This allows MI drivers to implement mmap() routines without having to know
about the pmap_phys_address() implementation and #ifdef obfuscation.
Diffstat (limited to 'sys/arch/hppa64/include')
-rw-r--r-- | sys/arch/hppa64/include/pmap.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/arch/hppa64/include/pmap.h b/sys/arch/hppa64/include/pmap.h index 9d7694cf1e6..9c71dc29be2 100644 --- a/sys/arch/hppa64/include/pmap.h +++ b/sys/arch/hppa64/include/pmap.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.h,v 1.3 2010/12/06 20:57:16 miod Exp $ */ +/* $OpenBSD: pmap.h,v 1.4 2010/12/26 15:40:59 miod Exp $ */ /* * Copyright (c) 2005 Michael Shalayeff @@ -81,7 +81,6 @@ pmap_prefer(vaddr_t offs, vaddr_t hint) #define pmap_clear_reference(pg) pmap_changebit(pg, PTE_REFTRAP, 0) #define pmap_is_modified(pg) pmap_testbit(pg, PTE_DIRTY) #define pmap_is_referenced(pg) pmap_testbit(pg, PTE_REFTRAP) -#define pmap_phys_address(ppn) ((ppn) << PAGE_SHIFT) #define pmap_proc_iflush(p,va,len) /* nothing */ #define pmap_unuse_final(p) /* nothing */ |