mirror of
https://github.com/fail0verflow/mini.git
synced 2024-11-30 23:24:19 +01:00
Add irq_wait
This commit is contained in:
parent
b80e7b74dd
commit
169bae8eed
6
irq.h
6
irq.h
@ -35,6 +35,12 @@ void irq_disable(u32 irq);
|
|||||||
u32 irq_kill(void);
|
u32 irq_kill(void);
|
||||||
void irq_restore(u32 cookie);
|
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
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user