Author: kib
Date: Tue May  7 01:18:57 2019
New Revision: 347216
URL: https://svnweb.freebsd.org/changeset/base/347216

Log:
  amd64: fix BUS_SPACE_MAXSIZE to 64bit max value.
  
  Reviewed by:  jhb, tychon (previous version)
  Sponsored by: The FreeBSD Foundation
  MFC after:    2 weeks
  Differential revision:        https://reviews.freebsd.org/D20154

Modified:
  head/sys/x86/include/bus.h

Modified: head/sys/x86/include/bus.h
==============================================================================
--- head/sys/x86/include/bus.h  Tue May  7 00:03:05 2019        (r347215)
+++ head/sys/x86/include/bus.h  Tue May  7 01:18:57 2019        (r347216)
@@ -114,7 +114,11 @@
 
 #define BUS_SPACE_MAXSIZE_24BIT        0xFFFFFF
 #define BUS_SPACE_MAXSIZE_32BIT 0xFFFFFFFF
+#if defined(__amd64__)
+#define BUS_SPACE_MAXSIZE      0xFFFFFFFFFFFFFFFFULL
+#else
 #define BUS_SPACE_MAXSIZE      0xFFFFFFFF
+#endif
 #define BUS_SPACE_MAXADDR_24BIT        0xFFFFFF
 #define BUS_SPACE_MAXADDR_32BIT 0xFFFFFFFF
 #if defined(__amd64__) || defined(PAE)
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to