Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Sep 2020 08:40:33 +0000 (UTC)
From:      Michal Meloun <mmel@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r366107 - head/sys/x86/include
Message-ID:  <202009240840.08O8eXtk040219@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mmel
Date: Thu Sep 24 08:40:32 2020
New Revision: 366107
URL: https://svnweb.freebsd.org/changeset/base/366107

Log:
  Add missing declarations of 64-bit variants of bus_peek/bus_poke on amd64.
  It fixes GENERIC-KCSAN build.
  
  Reported by:	rpokala
  MFC after:	1 month
  MFC with:	r365899

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

Modified: head/sys/x86/include/bus.h
==============================================================================
--- head/sys/x86/include/bus.h	Thu Sep 24 07:17:05 2020	(r366106)
+++ head/sys/x86/include/bus.h	Thu Sep 24 08:40:32 2020	(r366107)
@@ -1102,6 +1102,9 @@ bus_space_barrier(bus_space_tag_t tag __unused, bus_sp
 BUS_PEEK_FUNC(1, uint8_t)
 BUS_PEEK_FUNC(2, uint16_t)
 BUS_PEEK_FUNC(4, uint32_t)
+#ifdef __amd64__
+BUS_PEEK_FUNC(8, uint64_t)
+#endif
 
 #define BUS_POKE_FUNC(width, type)					\
 	static inline int						\
@@ -1114,6 +1117,9 @@ BUS_PEEK_FUNC(4, uint32_t)
 BUS_POKE_FUNC(1, uint8_t)
 BUS_POKE_FUNC(2, uint16_t)
 BUS_POKE_FUNC(4, uint32_t)
+#ifdef __amd64__
+BUS_POKE_FUNC(8, uint64_t)
+#endif
 
 #endif /* KCSAN && !KCSAN_RUNTIME */
 



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