Add irq_wait

This commit is contained in:
marcan 2009-01-14 03:17:55 +01:00
parent b80e7b74dd
commit 169bae8eed

6
irq.h
View File

@ -35,6 +35,12 @@ void irq_disable(u32 irq);
u32 irq_kill(void);
void irq_restore(u32 cookie);
static inline void irq_wait(void)
{
u32 data = 0;
__asm__ volatile ( "mcr\tp15, 0, %0, c7, c0, 4" : : "r" (data) );
}
#endif
#endif