Module Name: src
Committed By: maxv
Date: Sun Mar 3 17:33:33 UTC 2019
Modified Files:
src/sys/arch/x86/acpi: acpi_machdep.c
Log Message:
Fix bug, PG_W is 'wired', not 'writable'.
To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/sys/arch/x86/acpi/acpi_machdep.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/x86/acpi/acpi_machdep.c
diff -u src/sys/arch/x86/acpi/acpi_machdep.c:1.22 src/sys/arch/x86/acpi/acpi_machdep.c:1.23
--- src/sys/arch/x86/acpi/acpi_machdep.c:1.22 Mon Feb 11 14:59:32 2019
+++ src/sys/arch/x86/acpi/acpi_machdep.c Sun Mar 3 17:33:33 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_machdep.c,v 1.22 2019/02/11 14:59:32 cherry Exp $ */
+/* $NetBSD: acpi_machdep.c,v 1.23 2019/03/03 17:33:33 maxv Exp $ */
/*
* Copyright 2001 Wasabi Systems, Inc.
@@ -40,7 +40,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_machdep.c,v 1.22 2019/02/11 14:59:32 cherry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_machdep.c,v 1.23 2019/03/03 17:33:33 maxv Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -350,7 +350,7 @@ acpi_md_OsWritable(void *Pointer, uint32
for (; sva < eva; sva += PAGE_SIZE) {
pte = kvtopte(sva);
- if ((*pte & (PG_V|PG_W)) != (PG_V|PG_W)) {
+ if ((*pte & (PG_V|PG_RW)) != (PG_V|PG_RW)) {
rv = FALSE;
break;
}