Magic to make interrupt functions easy to write
This commit is contained in:
parent
2730144e2a
commit
b130f9a860
3 changed files with 45 additions and 18 deletions
|
|
@ -71,8 +71,6 @@ pub unsafe extern fn kstart() -> ! {
|
|||
kmain();
|
||||
}
|
||||
|
||||
#[naked]
|
||||
pub unsafe extern fn blank() {
|
||||
asm!("xchg bx, bx" : : : : "intel", "volatile");
|
||||
asm!("iretq" : : : : "intel", "volatile");
|
||||
}
|
||||
interrupt!(blank, {
|
||||
println!("INTERRUPT");
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue