mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 09:10:28 +00:00
Fix the sanitizer header checks on arm64
We need to not include the MI _san.h files when builing some parts of the kernel. Fix these checks in the arm64 header files. Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
d58b79d1ce
commit
d8da59ddf8
|
@ -53,7 +53,7 @@
|
|||
#define wmb() dmb(st) /* Full system memory barrier store */
|
||||
#define rmb() dmb(ld) /* Full system memory barrier load */
|
||||
|
||||
#if defined(KCSAN) && !defined(KCSAN_RUNTIME)
|
||||
#if defined(SAN_NEEDS_INTERCEPTORS) && !defined(SAN_RUNTIME)
|
||||
#include <sys/atomic_san.h>
|
||||
#else
|
||||
|
||||
|
|
|
@ -92,7 +92,7 @@
|
|||
#define BUS_SPACE_BARRIER_READ 0x01
|
||||
#define BUS_SPACE_BARRIER_WRITE 0x02
|
||||
|
||||
#ifdef SAN_NEEDS_INTERCEPTORS
|
||||
#if defined(SAN_NEEDS_INTERCEPTORS) && !defined(SAN_RUNTIME)
|
||||
#include <sys/bus_san.h>
|
||||
#else
|
||||
|
||||
|
|
Loading…
Reference in a new issue