aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReinhard Tartler <siretart@tauware.de>2006-08-27 14:54:30 +0200
committerReinhard Tartler <siretart@tauware.de>2006-08-27 14:54:30 +0200
commit9906b6c59c760b20ebf1e5466861bf7e573a8c6e (patch)
tree9f571da957cd62601405b78d154022fd455a5297
parent3badd5e2c6de1f35bed33338a0fdcec7f57be0ea (diff)
downloadlcd4linux-9906b6c59c760b20ebf1e5466861bf7e573a8c6e.tar.gz
fix FTBFS on other arches
Diffstat (limited to '')
-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);