summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-03-23 14:26:11 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-03-23 14:26:11 +0000
commitdfcecc94343791147d7c74ad65451f73a7db9475 (patch)
treec420c5fa1c086de518bef87c783e07e430e5594e /sys
parent671b0ffe9a468fb09899c6324fa899e82699d5a1 (diff)
fix a diagnostic check in pagemove
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/i386/i386/vm_machdep.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/arch/i386/i386/vm_machdep.c b/sys/arch/i386/i386/vm_machdep.c
index 36afc7340c4..5b122ab36d6 100644
--- a/sys/arch/i386/i386/vm_machdep.c
+++ b/sys/arch/i386/i386/vm_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vm_machdep.c,v 1.21 2001/03/22 23:36:51 niklas Exp $ */
+/* $OpenBSD: vm_machdep.c,v 1.22 2001/03/23 14:26:10 art Exp $ */
/* $NetBSD: vm_machdep.c,v 1.61 1996/05/03 19:42:35 christos Exp $ */
/*-
@@ -330,13 +330,15 @@ setredzone(pte, vaddr)
*/
void
pagemove(from, to, size)
- register caddr_t from, to;
+ caddr_t from, to;
size_t size;
{
- register pt_entry_t *fpte, *tpte;
+ pt_entry_t *fpte, *tpte;
- if (size % CLBYTES)
+#ifdef DIAGNOSTIC
+ if ((size & PAGE_MASK) != 0)
panic("pagemove");
+#endif
fpte = kvtopte(from);
tpte = kvtopte(to);
while (size > 0) {