Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 May 2019 01:18:57 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r347216 - head/sys/x86/include
Message-ID:  <201905070118.x471IvQ2094828@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201905070118.x471IvQ2094828>