git://scm.lunaixsky.com
/
lunaix-os.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Unifying External Interrupt System (#51)
[lunaix-os.git]
/
lunaix-os
/
arch
/
x86
/
includes
/
asm
/
cpu.h
1
#ifndef __LUNAIX_ARCH_CPU_H
2
#define __LUNAIX_ARCH_CPU_H
3
4
#include <lunaix/types.h>
5
6
void
7
cpu_trap_sched();
8
9
static inline void
10
cpu_enable_interrupt()
11
{
12
asm volatile("sti");
13
}
14
15
static inline void
16
cpu_disable_interrupt()
17
{
18
asm volatile("cli");
19
}
20
21
static inline void
22
cpu_wait()
23
{
24
asm("hlt");
25
}
26
27
#endif /* __LUNAIX_CPU_H */