summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Peereboom <marco@cvs.openbsd.org>2006-02-20 05:14:10 +0000
committerMarco Peereboom <marco@cvs.openbsd.org>2006-02-20 05:14:10 +0000
commit607070f38de736b14a41b04f6a3b2720fcfff18a (patch)
tree44b6e2ed811a096587c3473979929291bab1e547
parent8073055ad7576372479ef1bfc32ebebaef9d6da6 (diff)
Region has to be read/write not just read.
ok jordan Pointed out by Bjorn Andersson <bjorn at silversmedjan dot se>
-rw-r--r--sys/arch/i386/i386/acpi_machdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/i386/i386/acpi_machdep.c b/sys/arch/i386/i386/acpi_machdep.c
index 283f9e8b624..84bb20ead70 100644
--- a/sys/arch/i386/i386/acpi_machdep.c
+++ b/sys/arch/i386/i386/acpi_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpi_machdep.c,v 1.2 2005/11/13 14:23:26 martin Exp $ */
+/* $OpenBSD: acpi_machdep.c,v 1.3 2006/02/20 05:14:09 marco Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
*
@@ -62,7 +62,7 @@ acpi_map(paddr_t pa, size_t len, struct acpi_mem_map *handle)
handle->pa = pa;
do {
- pmap_kenter_pa(va, pgpa, VM_PROT_READ);
+ pmap_kenter_pa(va, pgpa, VM_PROT_READ | VM_PROT_WRITE);
va += NBPG;
pgpa += NBPG;
} while (pgpa < endpa);