svn commit: r232881 - head/sys/mips/include
Juli Mallett
jmallett at FreeBSD.org
Mon Mar 12 18:56:17 UTC 2012
Author: jmallett
Date: Mon Mar 12 18:56:16 2012
New Revision: 232881
URL: http://svn.freebsd.org/changeset/base/232881
Log:
Use 64-bit bus space constants on 64-bit kernels.
Modified:
head/sys/mips/include/bus.h
Modified: head/sys/mips/include/bus.h
==============================================================================
--- head/sys/mips/include/bus.h Mon Mar 12 18:50:37 2012 (r232880)
+++ head/sys/mips/include/bus.h Mon Mar 12 18:56:16 2012 (r232881)
@@ -707,11 +707,19 @@ void __bs_c(f,_bs_c_8) (void *t, bus_spa
#define BUS_SPACE_ALIGNED_POINTER(p, t) ALIGNED_POINTER(p, t)
#define BUS_SPACE_MAXADDR_24BIT 0xFFFFFF
-#define BUS_SPACE_MAXADDR_32BIT 0xFFFFFFFF
-#define BUS_SPACE_MAXADDR 0xFFFFFFFF
#define BUS_SPACE_MAXSIZE_24BIT 0xFFFFFF
+
+#define BUS_SPACE_MAXADDR_32BIT 0xFFFFFFFF
#define BUS_SPACE_MAXSIZE_32BIT 0xFFFFFFFF
-#define BUS_SPACE_MAXSIZE 0xFFFFFFFF
+
+#if defined(__mips_n64)
+#define BUS_SPACE_MAXADDR 0xFFFFFFFFFFFFFFFFUL
+#define BUS_SPACE_MAXSIZE 0xFFFFFFFFFFFFFFFFUL
+#else
+#define BUS_SPACE_MAXADDR 0xFFFFFFFFUL
+#define BUS_SPACE_MAXSIZE 0xFFFFFFFFUL
+#endif
+
#define BUS_SPACE_UNRESTRICTED (~0)
More information about the svn-src-head
mailing list