/* $NetBSD: lock.h,v 1.5 2022/07/24 20:28:32 riastradh Exp $ */ #ifndef _AARCH64_LOCK_H_ #define _AARCH64_LOCK_H_ #include #ifdef __aarch64__ # ifdef _HARDKERNEL # ifdef SPINLOCK_BACKOFF_HOOK # undef SPINLOCK_BACKOFF_HOOK # endif # define SPINLOCK_BACKOFF_HOOK asm volatile("yield" ::: "memory") # endif # include #elif defined(__arm__) # include #endif #endif /* _AARCH64_LOCK_H_ */