From 607070f38de736b14a41b04f6a3b2720fcfff18a Mon Sep 17 00:00:00 2001 From: Marco Peereboom Date: Mon, 20 Feb 2006 05:14:10 +0000 Subject: Region has to be read/write not just read. ok jordan Pointed out by Bjorn Andersson --- sys/arch/i386/i386/acpi_machdep.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys') 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 * @@ -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); -- cgit v1.2.3