Source-Changes-HG archive

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

[src/trunk]: src/sys/arch increase max io mem on amd64. some devices need it.



details:   https://anonhg.NetBSD.org/src/rev/4239804ae70a
branches:  trunk
changeset: 821009:4239804ae70a
user:      maya <maya%NetBSD.org@localhost>
date:      Fri Jan 20 00:29:28 2017 +0000

description:
increase max io mem on amd64. some devices need it.

diffstat:

 sys/arch/amd64/include/param.h |  4 +++-
 sys/arch/i386/include/param.h  |  4 +++-
 sys/arch/x86/x86/bus_space.c   |  6 +++---
 3 files changed, 9 insertions(+), 5 deletions(-)

diffs (63 lines):

diff -r 4faad44970cb -r 4239804ae70a sys/arch/amd64/include/param.h
--- a/sys/arch/amd64/include/param.h    Thu Jan 19 23:51:16 2017 +0000
+++ b/sys/arch/amd64/include/param.h    Fri Jan 20 00:29:28 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: param.h,v 1.19 2015/10/27 22:28:56 mrg Exp $   */
+/*     $NetBSD: param.h,v 1.20 2017/01/20 00:29:28 maya Exp $  */
 
 #ifdef __x86_64__
 
@@ -27,6 +27,8 @@
 #define        PGOFSET         (NBPG-1)        /* byte offset into page */
 #define        NPTEPG          (NBPG/(sizeof (pt_entry_t)))
 
+#define        MAXIOMEM        0xffffffffffff
+
 /*
  * XXXfvdl change this (after bootstrap) to take # of bits from
  * config info into account.
diff -r 4faad44970cb -r 4239804ae70a sys/arch/i386/include/param.h
--- a/sys/arch/i386/include/param.h     Thu Jan 19 23:51:16 2017 +0000
+++ b/sys/arch/i386/include/param.h     Fri Jan 20 00:29:28 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: param.h,v 1.79 2016/08/26 05:56:03 mlelstv Exp $       */
+/*     $NetBSD: param.h,v 1.80 2017/01/20 00:29:28 maya Exp $  */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -65,6 +65,8 @@
 #define        PGOFSET         (NBPG-1)        /* byte offset into page */
 #define        NPTEPG          (NBPG/(sizeof (pt_entry_t)))
 
+#define        MAXIOMEM        0xffffffff
+
 #if defined(_KERNEL_OPT)
 #include "opt_kernbase.h"
 #endif /* defined(_KERNEL_OPT) */
diff -r 4faad44970cb -r 4239804ae70a sys/arch/x86/x86/bus_space.c
--- a/sys/arch/x86/x86/bus_space.c      Thu Jan 19 23:51:16 2017 +0000
+++ b/sys/arch/x86/x86/bus_space.c      Fri Jan 20 00:29:28 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bus_space.c,v 1.38 2012/01/27 18:53:07 para Exp $      */
+/*     $NetBSD: bus_space.c,v 1.39 2017/01/20 00:29:28 maya Exp $      */
 
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bus_space.c,v 1.38 2012/01/27 18:53:07 para Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bus_space.c,v 1.39 2017/01/20 00:29:28 maya Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -129,7 +129,7 @@
        ioport_ex = extent_create("ioport", 0x0, 0xffff,
            (void *)ioport_ex_storage, sizeof(ioport_ex_storage),
            EX_NOCOALESCE|EX_NOWAIT);
-       iomem_ex = extent_create("iomem", 0x0, 0xffffffff,
+       iomem_ex = extent_create("iomem", 0x0, MAXIOMEM,
            (void *)iomem_ex_storage, sizeof(iomem_ex_storage),
            EX_NOCOALESCE|EX_NOWAIT);
 



Home | Main Index | Thread Index | Old Index