diff options
author | 2015-04-23 14:42:02 +0000 | |
---|---|---|
committer | 2015-04-23 14:42:02 +0000 | |
commit | 72b9a74cd22d3a09402945e184b420a9dabc0456 (patch) | |
tree | c434923321fff35fb8d7c54c33dbf2c266c32d88 | |
parent | tedu remnants of the previous attempt to implement page zeroing in (diff) | |
download | wireguard-openbsd-72b9a74cd22d3a09402945e184b420a9dabc0456.tar.xz wireguard-openbsd-72b9a74cd22d3a09402945e184b420a9dabc0456.zip |
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@
-rw-r--r-- | sys/arch/powerpc/powerpc/pmap.c | 4 |
1 files 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; |