Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/i386/i386 i386_memio_mmap(): return -1 to indicate ...



details:   https://anonhg.NetBSD.org/src/rev/22033c7e21db
branches:  trunk
changeset: 517700:22033c7e21db
user:      kleink <kleink%NetBSD.org@localhost>
date:      Sat Nov 17 19:32:03 2001 +0000

description:
i386_memio_mmap(): return -1 to indicate failure, not EOPNOTSUP.

diffstat:

 sys/arch/i386/i386/bus_machdep.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 7be3a3883f0a -r 22033c7e21db sys/arch/i386/i386/bus_machdep.c
--- a/sys/arch/i386/i386/bus_machdep.c  Sat Nov 17 19:00:25 2001 +0000
+++ b/sys/arch/i386/i386/bus_machdep.c  Sat Nov 17 19:32:03 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bus_machdep.c,v 1.13 2001/11/15 07:03:29 lukem Exp $   */
+/*     $NetBSD: bus_machdep.c,v 1.14 2001/11/17 19:32:03 kleink Exp $  */
 
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bus_machdep.c,v 1.13 2001/11/15 07:03:29 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bus_machdep.c,v 1.14 2001/11/17 19:32:03 kleink Exp $");
 
 #include "opt_largepages.h"
 
@@ -472,7 +472,7 @@
 
        /* Can't mmap I/O space. */
        if (t == I386_BUS_SPACE_IO)
-               return (EOPNOTSUPP);
+               return (-1);
 
        /*
         * "addr" is the base address of the device we're mapping.



Home | Main Index | Thread Index | Old Index