Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/x86/acpi Fix bug, PG_W is 'wired', not 'writable'.



details:   https://anonhg.NetBSD.org/src/rev/5ec284698fcf
branches:  trunk
changeset: 449319:5ec284698fcf
user:      maxv <maxv%NetBSD.org@localhost>
date:      Sun Mar 03 17:33:33 2019 +0000

description:
Fix bug, PG_W is 'wired', not 'writable'.

diffstat:

 sys/arch/x86/acpi/acpi_machdep.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 1dcb381cc900 -r 5ec284698fcf sys/arch/x86/acpi/acpi_machdep.c
--- a/sys/arch/x86/acpi/acpi_machdep.c  Sun Mar 03 17:09:24 2019 +0000
+++ b/sys/arch/x86/acpi/acpi_machdep.c  Sun Mar 03 17:33:33 2019 +0000
@@ -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 @@
 
        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;
                }



Home | Main Index | Thread Index | Old Index