Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/oea PR port-powerpc/56818



details:   https://anonhg.NetBSD.org/src/rev/ad596533a788
branches:  trunk
changeset: 366011:ad596533a788
user:      rin <rin%NetBSD.org@localhost>
date:      Mon May 09 11:39:44 2022 +0000

description:
PR port-powerpc/56818

Fix inverted logic introduced in rev. 1.108, by which modified/referenced
bits of pages were never cleared appropriately.

Now, full ATF runs on macppc and sandpoint, with no regression observed.

diffstat:

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

diffs (27 lines):

diff -r 081ade3ae2b8 -r ad596533a788 sys/arch/powerpc/oea/pmap.c
--- a/sys/arch/powerpc/oea/pmap.c       Mon May 09 07:20:18 2022 +0000
+++ b/sys/arch/powerpc/oea/pmap.c       Mon May 09 11:39:44 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.113 2022/04/09 23:38:32 riastradh Exp $     */
+/*     $NetBSD: pmap.c,v 1.114 2022/05/09 11:39:44 rin Exp $   */
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -63,7 +63,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.113 2022/04/09 23:38:32 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.114 2022/05/09 11:39:44 rin Exp $");
 
 #define        PMAP_NOOPNAMES
 
@@ -674,7 +674,7 @@
 pmap_pp_attr_clear(struct pmap_page *pp, int ptebit)
 {
 
-       pp->pp_attrs &= ptebit;
+       pp->pp_attrs &= ~ptebit;
 }
 
 static inline void



Home | Main Index | Thread Index | Old Index