summaryrefslogtreecommitdiff
path: root/sys/arch/hp300
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2001-01-31 22:39:46 +0000
committerJason Wright <jason@cvs.openbsd.org>2001-01-31 22:39:46 +0000
commita38d8533b3aa82f6262c91f32abc928a5f07c4aa (patch)
tree41a4e0e6536bc62976871cd488d78d7096f55a0d /sys/arch/hp300
parent90ee86a428707f4f1f502ddab8da4100aa71e976 (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/hp300')
-rw-r--r--sys/arch/hp300/dev/grf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/hp300/dev/grf.c b/sys/arch/hp300/dev/grf.c
index ce31812cbd1..81559ec8aff 100644
--- a/sys/arch/hp300/dev/grf.c
+++ b/sys/arch/hp300/dev/grf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: grf.c,v 1.7 1998/03/06 17:24:11 millert Exp $ */
+/* $OpenBSD: grf.c,v 1.8 2001/01/31 22:39:41 jason Exp $ */
/* $NetBSD: grf.c,v 1.25 1997/04/02 22:37:30 scottr Exp $ */
/*
@@ -680,7 +680,7 @@ iommap(dev, addrp)
if (grfdebug & (GDB_MMAP|GDB_IOMAP))
printf("iommap(%d): addr %p\n", curproc->p_pid, *addrp);
#endif
- return(EINVAL);
+ return(-1);
}
int
@@ -785,7 +785,7 @@ grflckmmap(dev, addrp)
printf("grflckmmap(%d): addr %p\n",
p->p_pid, *addrp);
#endif
- return(EINVAL);
+ return(-1);
}
int