From cfe8fd122f2fb0ab02476d2d87bc498681a14a8b Mon Sep 17 00:00:00 2001 From: Jason Wright Date: Tue, 19 Aug 2003 19:24:08 +0000 Subject: X should have R; deraadt, so now the page is in one of three states: none, X|R, W|R at all times. --- regress/sys/arch/sparc64/emul-popc/simm/simm13.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'regress/sys/arch/sparc64/emul-popc/simm/simm13.c') 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)(); -- cgit v1.2.3