summaryrefslogtreecommitdiff
path: root/sys/arch/solbourne/include
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2010-12-06 20:57:20 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2010-12-06 20:57:20 +0000
commit06811f8b859a05f9e03926e7738072c6f7fbbc50 (patch)
tree398a2d7680dfa249a5a2dbbf60f625e96988442e /sys/arch/solbourne/include
parent03433864b95120162a7f43c2099393d501ba6abc (diff)
Change the signature of PMAP_PREFER from void PMAP_PREFER(..., vaddr_t *) to
vaddr_t PMAP_PREFER(..., vaddr_t). This allows better compiler optimization when the function is inlined, and avoids accessing memory on architectures when we can pass function arguments in registers.
Diffstat (limited to 'sys/arch/solbourne/include')
-rw-r--r--sys/arch/solbourne/include/pmap.h23
1 files changed, 2 insertions, 21 deletions
diff --git a/sys/arch/solbourne/include/pmap.h b/sys/arch/solbourne/include/pmap.h
index 0b48944330f..8d00def393d 100644
--- a/sys/arch/solbourne/include/pmap.h
+++ b/sys/arch/solbourne/include/pmap.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.h,v 1.3 2010/11/18 21:21:38 miod Exp $ */
+/* $OpenBSD: pmap.h,v 1.4 2010/12/06 20:57:18 miod Exp $ */
/*
* Copyright (c) 2005, Miodrag Vallat
*
@@ -79,35 +79,16 @@ extern struct pmap kernel_pmap_store;
struct proc;
void kvm_setcache(caddr_t, int, int);
void switchexit(struct proc *); /* locore.s */
-void pmap_activate(struct proc *);
void pmap_bootstrap(size_t);
void pmap_cache_enable(void);
void pmap_changeprot(pmap_t, vaddr_t, vm_prot_t, int);
-boolean_t pmap_clear_modify(struct vm_page *);
-boolean_t pmap_clear_reference(struct vm_page *);
-void pmap_copy_page(struct vm_page *, struct vm_page *);
-pmap_t pmap_create(void);
-void pmap_destroy(pmap_t);
-int pmap_enter(pmap_t, vaddr_t, paddr_t, vm_prot_t, int);
-boolean_t pmap_extract(pmap_t, vaddr_t, paddr_t *);
-void pmap_init(void);
-boolean_t pmap_is_modified(struct vm_page *);
-boolean_t pmap_is_referenced(struct vm_page *);
-void pmap_kenter_pa(vaddr_t, paddr_t, vm_prot_t);
-void pmap_kremove(vaddr_t, vsize_t);
vaddr_t pmap_map(vaddr_t, paddr_t, paddr_t, int);
int pmap_pa_exists(paddr_t);
-void pmap_page_protect(struct vm_page *, vm_prot_t);
-void pmap_prefer(vaddr_t, vaddr_t *);
-void pmap_protect(pmap_t, vaddr_t, vaddr_t, vm_prot_t);
-void pmap_reference(pmap_t);
+vaddr_t pmap_prefer(vaddr_t, vaddr_t);
void pmap_release(pmap_t);
void pmap_redzone(void);
-void pmap_remove(pmap_t, vaddr_t, vaddr_t);
-void pmap_unwire(pmap_t, vaddr_t);
void pmap_virtual_space(vaddr_t *, vaddr_t *);
void pmap_writetext(unsigned char *, int);
-void pmap_zero_page(struct vm_page *);
#endif /* _KERNEL */