diff options
author | Eric Jackson <ericj@cvs.openbsd.org> | 2000-07-05 18:30:33 +0000 |
---|---|---|
committer | Eric Jackson <ericj@cvs.openbsd.org> | 2000-07-05 18:30:33 +0000 |
commit | 51a85923babca4693affa617b82243f182c88f4a (patch) | |
tree | 7610939e9b163578aa20c68abd8ed8eaef4d90ab /sys/arch | |
parent | 7929abcef9197ad54a149a6b67d1111a10a17ea8 (diff) |
make dmesg work on alpha
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/alpha/alpha/mem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/alpha/alpha/mem.c b/sys/arch/alpha/alpha/mem.c index 8e53cea7e04..f8ecc33c7d0 100644 --- a/sys/arch/alpha/alpha/mem.c +++ b/sys/arch/alpha/alpha/mem.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mem.c,v 1.9 1999/11/22 19:21:55 matthieu Exp $ */ +/* $OpenBSD: mem.c,v 1.10 2000/07/05 18:30:32 ericj Exp $ */ /* $NetBSD: mem.c,v 1.10 1996/11/13 21:13:10 cgd Exp $ */ /* @@ -122,7 +122,7 @@ mmrw(dev, uio, flags) kmemphys: /* allow reads only in RAM (except for DEBUG) */ if (v < ctob(firstusablepage) || - v > ctob(lastusablepage + 1)) + v > ctob(lastusablepage + 1 + btoc(MSGBUFSIZE))) return (EFAULT); o = uio->uio_offset & PGOFSET; c = min(uio->uio_resid, (int)(NBPG - o)); |