From 9906b6c59c760b20ebf1e5466861bf7e573a8c6e Mon Sep 17 00:00:00 2001 From: Reinhard Tartler Date: Sun, 27 Aug 2006 14:54:30 +0200 Subject: fix FTBFS on other arches --- udelay.h | 4 ++++ 1 file changed, 4 insertions(+) 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); -- cgit v1.2.3