OpenCores
URL https://opencores.org/ocsvn/c0or1k/c0or1k/trunk

Subversion Repositories c0or1k

[/] [c0or1k/] [trunk/] [include/] [l4/] [arch/] [arm/] [irq.h] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 drasko
#ifndef __ARM_IRQ_H__
2
#define __ARM_IRQ_H__
3
 
4
#include INC_SUBARCH(irq.h)
5
 
6
void irq_local_restore(unsigned long state);
7
void irq_local_disable_save(unsigned long *state);
8
int irqs_enabled();
9
 
10
static inline void irq_local_enable()
11
{
12
        enable_irqs();
13
}
14
 
15
static inline void irq_local_disable()
16
{
17
        disable_irqs();
18
}
19
 
20
 
21
/*
22
 * Destructive atomic-read.
23
 *
24
 * Write 0 to byte at @location as its contents are read back.
25
 */
26
char l4_atomic_dest_readb(void *location);
27
 
28
 
29
#endif /* __ARM_IRQ_H__ */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.