svn commit: r366107 - head/sys/x86/include
Michal Meloun
mmel at FreeBSD.org
Thu Sep 24 08:40:33 UTC 2020
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 */
More information about the svn-src-head
mailing list