diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-06-05 23:21:12 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-06-05 23:21:12 +0000 |
commit | dec8a5cbed790eeaf910a3ad528fe3bb68596532 (patch) | |
tree | b76f632acbc89ba20186b89f6ac717908a563f3e /sys | |
parent | d189899a9e11647d95e84fb9716a450e71a50022 (diff) |
fix DEBUG thing
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/alpha/alpha/mem.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/arch/alpha/alpha/mem.c b/sys/arch/alpha/alpha/mem.c index 01d10b782e9..b4719ee0c93 100644 --- a/sys/arch/alpha/alpha/mem.c +++ b/sys/arch/alpha/alpha/mem.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mem.c,v 1.6 1997/01/24 19:56:39 niklas Exp $ */ +/* $OpenBSD: mem.c,v 1.7 1997/06/05 23:21:11 deraadt Exp $ */ /* $NetBSD: mem.c,v 1.10 1996/11/13 21:13:10 cgd Exp $ */ /* @@ -112,12 +112,10 @@ mmrw(dev, uio, flags) case 0: v = uio->uio_offset; kmemphys: -#ifndef DEBUG /* allow reads only in RAM (except for DEBUG) */ if (v < ctob(firstusablepage) || - v >= ctob(lastusablepage + 1)) + v > ctob(lastusablepage + 1)) return (EFAULT); -#endif o = uio->uio_offset & PGOFSET; c = min(uio->uio_resid, (int)(NBPG - o)); error = |