diff options
author | Patrick Wildt <patrick@cvs.openbsd.org> | 2013-03-27 00:18:20 +0000 |
---|---|---|
committer | Patrick Wildt <patrick@cvs.openbsd.org> | 2013-03-27 00:18:20 +0000 |
commit | 61c85d2da73b885bd4f5083b9f9480a41074ad7e (patch) | |
tree | 716002aa474ac6d77f381af07ff3933a2a4dcfd6 /sys/arch/arm | |
parent | e6c9e8960f312f75de6f708003025c717a1257e6 (diff) |
Mark vector page as executable and fix a cast.
ok miod@
Diffstat (limited to 'sys/arch/arm')
-rw-r--r-- | sys/arch/arm/arm/arm32_machdep.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/arm/arm/arm32_machdep.c b/sys/arch/arm/arm/arm32_machdep.c index afcd28cfddf..72512311dce 100644 --- a/sys/arch/arm/arm/arm32_machdep.c +++ b/sys/arch/arm/arm/arm32_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: arm32_machdep.c,v 1.39 2011/09/20 22:02:10 miod Exp $ */ +/* $OpenBSD: arm32_machdep.c,v 1.40 2013/03/27 00:18:19 patrick Exp $ */ /* $NetBSD: arm32_machdep.c,v 1.42 2003/12/30 12:33:15 pk Exp $ */ /* @@ -126,7 +126,7 @@ void arm32_vector_init(vaddr_t va, int which) { extern unsigned int page0[], page0_data[]; - unsigned int *vectors = (int *) va; + unsigned int *vectors = (unsigned int *) va; unsigned int *vectors_data = vectors + (page0_data - page0); int vec; @@ -238,7 +238,7 @@ cpu_startup() cpu_setup(); /* Lock down zero page */ - vector_page_setprot(VM_PROT_READ); + vector_page_setprot(VM_PROT_READ|VM_PROT_EXECUTE); /* * Give pmap a chance to set up a few more things now the vm |