summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/asm.h6
-rw-r--r--shim.c2
2 files changed, 4 insertions, 4 deletions
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;
diff --git a/shim.c b/shim.c
index ecf6ee59..2ae60243 100644
--- a/shim.c
+++ b/shim.c
@@ -1817,7 +1817,7 @@ debug_hook(void)
if (x > 12000)
break;
#endif
- pause();
+ wait_for_debug();
}
x = 1;
}