Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/acpi Correct the test for writeable memory. Th...



details:   https://anonhg.NetBSD.org/src/rev/daec9bbc51ce
branches:  trunk
changeset: 844330:daec9bbc51ce
user:      skrll <skrll%NetBSD.org@localhost>
date:      Mon Aug 12 15:29:48 2019 +0000

description:
Correct the test for writeable memory.  There aren't any users of this at
this point.

diffstat:

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

diffs (27 lines):

diff -r 2c5a201fbe65 -r daec9bbc51ce sys/arch/arm/acpi/acpi_machdep.c
--- a/sys/arch/arm/acpi/acpi_machdep.c  Mon Aug 12 14:21:54 2019 +0000
+++ b/sys/arch/arm/acpi/acpi_machdep.c  Mon Aug 12 15:29:48 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_machdep.c,v 1.8 2019/08/01 18:59:10 jmcneill Exp $ */
+/* $NetBSD: acpi_machdep.c,v 1.9 2019/08/12 15:29:48 skrll Exp $ */
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
 #include "pci.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_machdep.c,v 1.8 2019/08/01 18:59:10 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_machdep.c,v 1.9 2019/08/12 15:29:48 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -231,7 +231,7 @@
 
        for (; sva < eva; sva += PAGE_SIZE) {
                pte = kvtopte(sva);
-               if ((*pte & (LX_BLKPAG_AF|LX_BLKPAG_AP_RW)) != (LX_BLKPAG_AF|LX_BLKPAG_AP_RW))
+               if ((*pte & (LX_BLKPAG_AF|LX_BLKPAG_AP)) != (LX_BLKPAG_AF|LX_BLKPAG_AP_RW))
                        return FALSE;
        }
 



Home | Main Index | Thread Index | Old Index