aboutsummaryrefslogtreecommitdiff
path: root/include/cpu/irq.h
blob: 1879707f528eb653830d745c5fc19a114a5cb51d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef CPU_IRQ_H
#define CPU_IRQ_H

static inline void enableirq(void)
{
	asm volatile("cpsie i");
}
static inline void disableirq(void)
{
	asm volatile("cpsid i");
}
static inline void enablefiq(void)
{
	asm volatile("cpsie f");
}
static inline void disablefiq(void)
{
	asm volatile("cpsid f");
}

unsigned long c_irq_handler(void);
unsigned long c_fiq_handler(void);

#endif