Magic to make interrupt functions easy to write

This commit is contained in:
Jeremy Soller 2016-08-14 12:08:42 -06:00
commit b130f9a860
3 changed files with 45 additions and 18 deletions

View file

@ -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");
});