From a17e74359ad646e80ce44104ef00afe0fb5cc9b6 Mon Sep 17 00:00:00 2001 From: thorpej Date: Tue, 1 Apr 2003 21:08:13 +0000 Subject: [PATCH] Use PAGE_SIZE rather than NBPG. --- sys/arch/alpha/alpha/vm_machdep.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sys/arch/alpha/alpha/vm_machdep.c b/sys/arch/alpha/alpha/vm_machdep.c index f254afa95c57..94701293ff3f 100644 --- a/sys/arch/alpha/alpha/vm_machdep.c +++ b/sys/arch/alpha/alpha/vm_machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: vm_machdep.c,v 1.77 2003/01/17 22:11:19 thorpej Exp $ */ +/* $NetBSD: vm_machdep.c,v 1.78 2003/04/01 21:08:13 thorpej Exp $ */ /* * Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University. @@ -29,7 +29,7 @@ #include /* RCS ID & Copyright macro defns */ -__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.77 2003/01/17 22:11:19 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.78 2003/04/01 21:08:13 thorpej Exp $"); #include #include @@ -274,7 +274,7 @@ cpu_swapout(struct lwp *l) /* * Move pages from one kernel virtual address to another. * Both addresses are assumed to have valid page table pages. - * and size must be a multiple of NBPG. + * and size must be a multiple of PAGE_SIZE. * * Note that since all kernel page table pages are pre-allocated * and mapped in, we can use the Virtual Page Table. @@ -286,7 +286,7 @@ pagemove(caddr_t from, caddr_t to, size_t size) ssize_t todo; PMAP_TLB_SHOOTDOWN_CPUSET_DECL - if (size % NBPG) + if (size % PAGE_SIZE) panic("pagemove"); todo = size; /* if testing > 0, need sign... */ @@ -303,9 +303,9 @@ pagemove(caddr_t from, caddr_t to, size_t size) PMAP_TLB_SHOOTDOWN(pmap_kernel(), (vaddr_t)from, PG_ASM); PMAP_TLB_SHOOTDOWN(pmap_kernel(), (vaddr_t)to, PG_ASM); - todo -= NBPG; - from += NBPG; - to += NBPG; + todo -= PAGE_SIZE; + from += PAGE_SIZE; + to += PAGE_SIZE; } PMAP_TLB_SHOOTNOW();