This source file includes following definitions.
- arch_local_save_flags
- arch_local_irq_restore
- init_IRQ
- do_IRQ
1
2
3
4
5
6
7
8
9
10
11
12
13 #include <linux/interrupt.h>
14 #include <linux/init.h>
15 #include <linux/ftrace.h>
16 #include <linux/irq.h>
17 #include <linux/irqchip.h>
18 #include <linux/export.h>
19 #include <linux/irqflags.h>
20
21
22 unsigned long arch_local_save_flags(void)
23 {
24 return mfspr(SPR_SR) & (SPR_SR_IEE|SPR_SR_TEE);
25 }
26 EXPORT_SYMBOL(arch_local_save_flags);
27
28
29 void arch_local_irq_restore(unsigned long flags)
30 {
31 mtspr(SPR_SR, ((mfspr(SPR_SR) & ~(SPR_SR_IEE|SPR_SR_TEE)) | flags));
32 }
33 EXPORT_SYMBOL(arch_local_irq_restore);
34
35 void __init init_IRQ(void)
36 {
37 irqchip_init();
38 }
39
40 void __irq_entry do_IRQ(struct pt_regs *regs)
41 {
42 handle_arch_irq(regs);
43 }