From 3ecfa301f4a8c4c2168f95f27d0313f4158ab53d Mon Sep 17 00:00:00 2001 From: Peter Jones Date: Fri, 2 Jul 2021 13:11:59 -0400 Subject: shim: rename pause() to wait_for_debug() pause() is a posix function, and having it named the same as this makes it hard to include the asm.h header in some test cases. Signed-off-by: Peter Jones --- include/asm.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/asm.h b/include/asm.h index 8458d5d2..03b06557 100644 --- a/include/asm.h +++ b/include/asm.h @@ -26,17 +26,17 @@ static inline uint64_t read_counter(void) } #if defined(__x86_64__) || defined(__i386__) || defined(__i686__) -static inline void pause(void) +static inline void wait_for_debug(void) { __asm__ __volatile__("pause"); } #elif defined(__aarch64__) -static inline void pause(void) +static inline void wait_for_debug(void) { __asm__ __volatile__("wfi"); } #else -static inline void pause(void) +static inline void wait_for_debug(void) { uint64_t a, b; int x; -- cgit v1.2.3