From 72b9a74cd22d3a09402945e184b420a9dabc0456 Mon Sep 17 00:00:00 2001 From: mpi Date: Thu, 23 Apr 2015 14:42:02 +0000 Subject: [PATCH] Fix 13 years old typo that should be responsible for the unhappiness of UVM on PowerPC architectures by breaking pmap_is_referenced() and friends. ok kettenis@ --- sys/arch/powerpc/powerpc/pmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/arch/powerpc/powerpc/pmap.c b/sys/arch/powerpc/powerpc/pmap.c index 622002ee4ce..52776accb0a 100644 --- a/sys/arch/powerpc/powerpc/pmap.c +++ b/sys/arch/powerpc/powerpc/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.144 2015/03/31 16:00:38 mpi Exp $ */ +/* $OpenBSD: pmap.c,v 1.145 2015/04/23 14:42:02 mpi Exp $ */ /* * Copyright (c) 2001, 2002, 2007 Dale Rahn. @@ -1056,7 +1056,7 @@ pteclrbits(struct vm_page *pg, u_int flagbit, u_int clear) s = splvm(); LIST_FOREACH(pted, &(pg->mdpage.pv_list), pted_pv_list) { - vaddr_t va = pted->pted_va & PAGE_MASK; + vaddr_t va = pted->pted_va & ~PAGE_MASK; pmap_t pm = pted->pted_pmap; struct pte_64 *ptp64; struct pte_32 *ptp32; -- 2.20.1