From 88f7c52f3139c7a8c985295350fbd3970d31e503 Mon Sep 17 00:00:00 2001 From: Michal Meloun Date: Thu, 24 Sep 2020 08:40:32 +0000 Subject: [PATCH] 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 --- sys/x86/include/bus.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/x86/include/bus.h b/sys/x86/include/bus.h index c02b7e754c0e..562445b81203 100644 --- a/sys/x86/include/bus.h +++ b/sys/x86/include/bus.h @@ -1102,6 +1102,9 @@ bus_space_barrier(bus_space_tag_t tag __unused, bus_space_handle_t bsh __unused, 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 */