diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-07-25 13:25:34 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-07-25 13:25:34 +0000 |
commit | 9b5d0ac364b4502c9f4962efc3b9cf762eeb8a23 (patch) | |
tree | c5b76dbc032ac625cb87376504029b7b8c6c8f71 /sys/arch/sparc/include | |
parent | 2aa44ff1a290aa08d7d6659ac7350bb6d3efb06c (diff) |
Change the pmap_enter interface to merge access_type and the wired boolean
and arbitrary flags into one argument.
One new flag is PMAP_CANFAIL that tells pmap_enter that it can fail if there
are not enough resources to satisfy the request. If this flag is not passed,
pmap_enter should panic as it should have done before this change (XXX - many
pmaps are still not doing that).
Only i386 and alpha implement CANFAIL for now.
Includes uvm updates from NetBSD.
Diffstat (limited to 'sys/arch/sparc/include')
-rw-r--r-- | sys/arch/sparc/include/pmap.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/sys/arch/sparc/include/pmap.h b/sys/arch/sparc/include/pmap.h index 69f65fd826c..897b94ec8f4 100644 --- a/sys/arch/sparc/include/pmap.h +++ b/sys/arch/sparc/include/pmap.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.h,v 1.20 2001/06/27 18:30:30 art Exp $ */ +/* $OpenBSD: pmap.h,v 1.21 2001/07/25 13:25:33 art Exp $ */ /* $NetBSD: pmap.h,v 1.30 1997/08/04 20:00:47 pk Exp $ */ /* @@ -315,8 +315,7 @@ void pmap_writetext __P((unsigned char *, int)); boolean_t pmap_clear_modify4_4c __P((struct vm_page *)); boolean_t pmap_clear_reference4_4c __P((struct vm_page *)); void pmap_copy_page4_4c __P((paddr_t, paddr_t)); -void pmap_enter4_4c __P((pmap_t, vaddr_t, paddr_t, vm_prot_t, - boolean_t, vm_prot_t)); +int pmap_enter4_4c __P((pmap_t, vaddr_t, paddr_t, vm_prot_t, int)); boolean_t pmap_extract4_4c __P((pmap_t, vaddr_t, paddr_t *)); boolean_t pmap_is_modified4_4c __P((struct vm_page *)); boolean_t pmap_is_referenced4_4c __P((struct vm_page *)); @@ -335,8 +334,7 @@ void pmap_changeprot4_4c __P((pmap_t, vaddr_t, vm_prot_t, int)); boolean_t pmap_clear_modify4m __P((struct vm_page *)); boolean_t pmap_clear_reference4m __P((struct vm_page *)); void pmap_copy_page4m __P((paddr_t, paddr_t)); -void pmap_enter4m __P((pmap_t, vaddr_t, paddr_t, vm_prot_t, - boolean_t, vm_prot_t)); +int pmap_enter4m __P((pmap_t, vaddr_t, paddr_t, vm_prot_t, int)); boolean_t pmap_extract4m __P((pmap_t, vaddr_t, paddr_t *)); boolean_t pmap_is_modified4m __P((struct vm_page *)); boolean_t pmap_is_referenced4m __P((struct vm_page *)); @@ -388,8 +386,8 @@ void pmap_changeprot4m __P((pmap_t, vaddr_t, vm_prot_t, int)); extern boolean_t (*pmap_clear_modify_p) __P((struct vm_page *)); extern boolean_t (*pmap_clear_reference_p) __P((struct vm_page *)); extern void (*pmap_copy_page_p) __P((paddr_t, paddr_t)); -extern void (*pmap_enter_p) __P((pmap_t, vaddr_t, paddr_t, - vm_prot_t, boolean_t, vm_prot_t)); +extern int (*pmap_enter_p) __P((pmap_t, vaddr_t, paddr_t, + vm_prot_t, int)); extern boolean_t (*pmap_extract_p) __P((pmap_t, vaddr_t, paddr_t *)); extern boolean_t (*pmap_is_modified_p) __P((struct vm_page *)); extern boolean_t (*pmap_is_referenced_p) __P((struct vm_page *)); |