aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--udelay.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/udelay.h b/udelay.h
index aa26950..2def361 100644
--- a/udelay.h
+++ b/udelay.h
@@ -79,7 +79,11 @@
/* REP NOP (PAUSE) is a good thing to insert into busy-wait loops. */
static inline void rep_nop(void)
{
+#if defined (__i386__) || defined (__amd64__)
__asm__ __volatile__("rep; nop");
+#else
+#warning "please insert appropriate nop asm statement here"
+#endif
}
void udelay_init(void);