git://scm.lunaixsky.com
/
lunaix-os.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
add asm headers and linker scripts for aarch64
[lunaix-os.git]
/
lunaix-os
/
arch
/
aarch64
/
includes
/
asm
/
cpu.h
1
#ifndef __LUNAIX_ARCH_CPU_H
2
#define __LUNAIX_ARCH_CPU_H
3
4
#include "aa64.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
static inline void
22
cpu_wait()
23
{
24
asm volatile ( "wfi" );
25
}
26
27
#endif /* __LUNAIX_CPU_H */