8ed9849493514970a72431b67b924a491426f804
[lunaix-os.git] / lunaix-os / arch / aarch64 / includes / sys / cpu.h
1 #ifndef __LUNAIX_AA64_CPU_H
2 #define __LUNAIX_AA64_CPU_H
3
4 #include <sys/msrs.h>
5
6 void
7 cpu_trap_sched();
8
9 static inline void
10 cpu_enable_interrupt()
11 {
12     set_sysreg(ALLINT_EL1, 0);
13 }
14
15 static inline void
16 cpu_disable_interrupt()
17 {
18     set_sysreg(ALLINT_EL1, 1 << 12);
19 }
20
21 #endif /* __LUNAIX_AA64_CPU_H */