linux-mips
[Top] [All Lists]

lift the ioport_resource limit ...

To: linux-mips@oss.sgi.com
Subject: lift the ioport_resource limit ...
From: Jun Sun <jsun@mvista.com>
Date: Wed, 09 May 2001 10:35:12 -0700
Sender: owner-linux-mips@oss.sgi.com
Currently IO_SPACE_LIMIT is 0xffff, which is probably borrowed from the legacy
i386 code.  Let us remove that limit, so that each machine does not have to
laboriously reset it. 

BTW, a prudent machine port should probably always reset it to a more sane
range - in any case having 0xffff default value does not make much sense.

Jun

diff -Nru linux/include/asm-mips/io.h.orig linux/include/asm-mips/io.h
--- linux/include/asm-mips/io.h.orig    Fri Feb  9 16:43:15 2001
+++ linux/include/asm-mips/io.h Wed May  9 10:26:44 2001
@@ -436,7 +436,7 @@
        __inslc((port),(addr),(count)) : \
        __insl((port),(addr),(count)))
 
-#define IO_SPACE_LIMIT 0xffff
+#define IO_SPACE_LIMIT 0xffffffff
 
 /*
  * The caches on some architectures aren't dma-coherent and have need to

<Prev in Thread] Current Thread [Next in Thread>