summaryrefslogtreecommitdiff
path: root/sys/arch/hppa
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/hppa
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/hppa')
-rw-r--r--sys/arch/hppa/gsc/gscbus.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/hppa/gsc/gscbus.c b/sys/arch/hppa/gsc/gscbus.c
index f324c12d334..d7e482d3565 100644
--- a/sys/arch/hppa/gsc/gscbus.c
+++ b/sys/arch/hppa/gsc/gscbus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gscbus.c,v 1.9 2000/02/09 05:04:22 mickey Exp $ */
+/* $OpenBSD: gscbus.c,v 1.10 2001/01/31 22:39:41 jason Exp $ */
/*
* Copyright (c) 1998 Michael Shalayeff
@@ -407,5 +407,5 @@ gsc_dmamem_mmap(v, segs, nsegs, off, prot, flags)
int prot;
int flags;
{
- return 0;
+ return (-1);
}