summaryrefslogtreecommitdiff
path: root/sys/arch/alpha/include
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2002-07-24 00:33:51 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2002-07-24 00:33:51 +0000
commit7e2bd6297d10d10c88eb737b0ef812b3100e865f (patch)
treefcc94f373cb90580d69267172ddd2a3864ee034f /sys/arch/alpha/include
parentd34f87bfce1c1f67a548fd1fc2bb3ee8049c94fd (diff)
Pretty nasty hack to make non-exec mappings work.
Instead of using FOE for just emulating references, we also keep track of a pages executability and don't remove the FOE bit if the page is not executable. This is implmented with horrible hacks. Maybe when I have time, I'll reimplment the whole pmap to allow this without ugly hacks (read: probably not this decade). The stack on alpha is now non-exec.
Diffstat (limited to 'sys/arch/alpha/include')
-rw-r--r--sys/arch/alpha/include/pmap.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arch/alpha/include/pmap.h b/sys/arch/alpha/include/pmap.h
index 20ba20184c1..ce905446937 100644
--- a/sys/arch/alpha/include/pmap.h
+++ b/sys/arch/alpha/include/pmap.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.h,v 1.11 2001/12/05 00:11:51 millert Exp $ */
+/* $OpenBSD: pmap.h,v 1.12 2002/07/24 00:33:50 art Exp $ */
/* $NetBSD: pmap.h,v 1.37 2000/11/19 03:16:35 thorpej Exp $ */
/*-
@@ -210,8 +210,7 @@ paddr_t vtophys(vaddr_t);
/* Machine-specific functions. */
void pmap_bootstrap(paddr_t ptaddr, u_int maxasn, u_long ncpuids);
-void pmap_emulate_reference(struct proc *p, vaddr_t v,
- int user, int write);
+int pmap_emulate_reference(struct proc *p, vaddr_t v, int user, int type);
#ifdef _PMAP_MAY_USE_PROM_CONSOLE
int pmap_uses_prom_console(void);
#endif