diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2003-08-19 19:24:08 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2003-08-19 19:24:08 +0000 |
commit | cfe8fd122f2fb0ab02476d2d87bc498681a14a8b (patch) | |
tree | 5f0c29e9ed4d5d3000f6421b17d61fe5db0097e7 /regress/sys/arch | |
parent | ec989ae52a42eacd68dd9470eb170a6a08c490dd (diff) |
X should have R; deraadt, so now the page is in one of three states: none, X|R, W|R at all times.
Diffstat (limited to 'regress/sys/arch')
-rw-r--r-- | regress/sys/arch/sparc64/emul-popc/simm/simm13.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/sys/arch/sparc64/emul-popc/simm/simm13.c b/regress/sys/arch/sparc64/emul-popc/simm/simm13.c index 8c1ca6dc93c..86d45a98190 100644 --- a/regress/sys/arch/sparc64/emul-popc/simm/simm13.c +++ b/regress/sys/arch/sparc64/emul-popc/simm/simm13.c @@ -1,4 +1,4 @@ -/* $OpenBSD: simm13.c,v 1.4 2003/08/19 19:17:54 jason Exp $ */ +/* $OpenBSD: simm13.c,v 1.5 2003/08/19 19:24:07 jason Exp $ */ /* * Copyright (c) 2003 Jason L. Wright (jason@thought.net) @@ -68,7 +68,7 @@ a_popc_imm(void *v, int i) err(1, "mprotect"); gen_simm(v, i); - if (mprotect(v, 2 * sizeof(union instr), PROT_EXEC) == -1) + if (mprotect(v, 2 * sizeof(union instr), PROT_READ|PROT_EXEC) == -1) err(1, "mprotect"); r = (*func)(); |