Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/aarch64/aarch64 aarch64/pmap: Fix criterion in prev...



details:   https://anonhg.NetBSD.org/src/rev/7cf8cb4e677a
branches:  trunk
changeset: 372202:7cf8cb4e677a
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Oct 30 14:08:09 2022 +0000

description:
aarch64/pmap: Fix criterion in previous.

Use the pte bit that says whether this is a PMAP_WIRED page, not the
bit that says whether this is a non-global page.

(Forgot to git commit --amend before exporting to CVS, sorry!)

diffstat:

 sys/arch/aarch64/aarch64/pmap.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 35cb7650e2f2 -r 7cf8cb4e677a sys/arch/aarch64/aarch64/pmap.c
--- a/sys/arch/aarch64/aarch64/pmap.c   Sun Oct 30 11:51:19 2022 +0000
+++ b/sys/arch/aarch64/aarch64/pmap.c   Sun Oct 30 14:08:09 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.146 2022/10/30 10:26:48 riastradh Exp $     */
+/*     $NetBSD: pmap.c,v 1.147 2022/10/30 14:08:09 riastradh Exp $     */
 
 /*
  * Copyright (c) 2017 Ryo Shimizu <ryo%nerv.org@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.146 2022/10/30 10:26:48 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.147 2022/10/30 14:08:09 riastradh Exp $");
 
 #include "opt_arm_debug.h"
 #include "opt_cpuoptions.h"
@@ -1426,7 +1426,7 @@
                        continue;
                }
 
-               if (pte & LX_BLKPAG_NG) {
+               if ((pte & LX_BLKPAG_OS_WIRED) == 0) {
                        const paddr_t pa = lxpde_pa(pte);
                        struct vm_page *const pg = PHYS_TO_VM_PAGE(pa);
 



Home | Main Index | Thread Index | Old Index