diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-03-21 10:15:06 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-03-21 10:15:06 +0000 |
commit | c18f181fb8f06ac5ffff1705fbfeccb4bee6abf0 (patch) | |
tree | a43b8951c287dfe0442d7c24c80147bf71ca20b3 /sys/arch/alpha | |
parent | 15f7479f39a557a9477a8e4c14d9e005f2c5453b (diff) |
optimize a sanity check and put it behind ifdef DIAGNOSTIC.
Diffstat (limited to 'sys/arch/alpha')
-rw-r--r-- | sys/arch/alpha/alpha/vm_machdep.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/alpha/alpha/vm_machdep.c b/sys/arch/alpha/alpha/vm_machdep.c index d493a84a6f7..296a13fb88f 100644 --- a/sys/arch/alpha/alpha/vm_machdep.c +++ b/sys/arch/alpha/alpha/vm_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vm_machdep.c,v 1.18 2001/01/20 20:27:40 art Exp $ */ +/* $OpenBSD: vm_machdep.c,v 1.19 2001/03/21 10:15:05 art Exp $ */ /* $NetBSD: vm_machdep.c,v 1.55 2000/03/29 03:49:48 simonb Exp $ */ /* @@ -325,8 +325,10 @@ pagemove(from, to, size) long fidx, tidx; ssize_t todo; - if (size % NBPG) +#ifdef DIAGNOSTIC + if ((size & PAGE_MASK) != 0) panic("pagemove"); +#endif todo = size; /* if testing > 0, need sign... */ while (todo > 0) { |