diff options
author | Marco Peereboom <marco@cvs.openbsd.org> | 2006-02-20 05:16:21 +0000 |
---|---|---|
committer | Marco Peereboom <marco@cvs.openbsd.org> | 2006-02-20 05:16:21 +0000 |
commit | 591f3ca25f1f36561232ae2a8b6052f5929bc91d (patch) | |
tree | 0858807d2f77cad692f87716e32a5996cb5f2f5d /sys/arch/amd64 | |
parent | 607070f38de736b14a41b04f6a3b2720fcfff18a (diff) |
Region has to be read and write not just read.
ok jordan
Pointed out by Bjorn Andersson <bjorn at silversmedjan dot se>
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r-- | sys/arch/amd64/amd64/acpi_machdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/amd64/amd64/acpi_machdep.c b/sys/arch/amd64/amd64/acpi_machdep.c index da39a73deb2..62603b4d3aa 100644 --- a/sys/arch/amd64/amd64/acpi_machdep.c +++ b/sys/arch/amd64/amd64/acpi_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpi_machdep.c,v 1.3 2005/12/16 20:41:50 marco Exp $ */ +/* $OpenBSD: acpi_machdep.c,v 1.4 2006/02/20 05:16:20 marco Exp $ */ /* * Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com> * @@ -51,7 +51,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); |