diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2001-01-31 22:39:46 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2001-01-31 22:39:46 +0000 |
commit | a38d8533b3aa82f6262c91f32abc928a5f07c4aa (patch) | |
tree | 41a4e0e6536bc62976871cd488d78d7096f55a0d /sys/arch/mips | |
parent | 90ee86a428707f4f1f502ddab8da4100aa71e976 (diff) |
based on art's sparc patch:
mmap should return -1 on failure, not EOPNOTSUPP.
As it was now, an mmap of /dev/mem always returned page 45.
Diffstat (limited to 'sys/arch/mips')
-rw-r--r-- | sys/arch/mips/mips/mem.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arch/mips/mips/mem.c b/sys/arch/mips/mips/mem.c index 73e5a40f57c..4f58f8d6920 100644 --- a/sys/arch/mips/mips/mem.c +++ b/sys/arch/mips/mips/mem.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mem.c,v 1.4 2000/01/30 18:12:55 imp Exp $ */ +/* $OpenBSD: mem.c,v 1.5 2001/01/31 22:39:42 jason Exp $ */ /* $NetBSD: mem.c,v 1.6 1995/04/10 11:55:03 mycroft Exp $ */ /* @@ -185,8 +185,7 @@ mmmmap(dev, off, prot) dev_t dev; int off, prot; { - - return (EOPNOTSUPP); + return (-1); } /*ARGSUSED*/ |