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/vm | |
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/vm')
-rw-r--r-- | sys/vm/pmap.h | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/sys/vm/pmap.h b/sys/vm/pmap.h index 9de119abdc4..8b26c78a3db 100644 --- a/sys/vm/pmap.h +++ b/sys/vm/pmap.h @@ -1,5 +1,5 @@ -/* $OpenBSD: pmap.h,v 1.19 2001/07/18 10:47:05 art Exp $ */ -/* $NetBSD: pmap.h,v 1.16 1996/03/31 22:15:32 pk Exp $ */ +/* $OpenBSD: pmap.h,v 1.20 2001/07/25 13:25:33 art Exp $ */ +/* $NetBSD: pmap.h,v 1.36 1999/11/13 00:24:39 thorpej Exp $ */ /* * Copyright (c) 1991, 1993 @@ -113,19 +113,7 @@ void pmap_copy __P((pmap_t, pmap_t, vaddr_t, vsize_t, vaddr_t)); void pmap_copy_page __P((paddr_t, paddr_t)); struct pmap *pmap_create __P((void)); void pmap_destroy __P((pmap_t)); -#if defined(__i386__) -#ifdef notyet int pmap_enter __P((pmap_t, vaddr_t, paddr_t, vm_prot_t, int)); -#else -int _pmap_enter __P((pmap_t, vaddr_t, paddr_t, vm_prot_t, int)); -#define pmap_enter(pmap, va, pa, prot, wired, access_type) \ - (_pmap_enter((pmap), (va), (pa), (prot), ((wired) ? PMAP_WIRED : 0))) -#endif -#else -void pmap_enter __P((pmap_t, - vaddr_t, paddr_t, vm_prot_t, boolean_t, vm_prot_t)); -#endif - boolean_t pmap_extract __P((pmap_t, vaddr_t, paddr_t *)); #if defined(PMAP_GROWKERNEL) vaddr_t pmap_growkernel __P((vaddr_t)); |