From 169bae8eed4e15108fc59e7573f22ad5e47f71f1 Mon Sep 17 00:00:00 2001 From: marcan Date: Wed, 14 Jan 2009 03:17:55 +0100 Subject: [PATCH] Add irq_wait --- irq.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/irq.h b/irq.h index aba6ee8..6ad2eb8 100644 --- a/irq.h +++ b/irq.h @@ -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