Map kernel in AP, WIP
This commit is contained in:
parent
27d5996abf
commit
ebf9766ef5
1 changed files with 87 additions and 48 deletions
|
|
@ -21,12 +21,16 @@ pub unsafe fn init() {
|
|||
entry.set_offset(8, blank as usize);
|
||||
}
|
||||
IDTR.set_slice(&IDT);
|
||||
|
||||
init_ap();
|
||||
}
|
||||
|
||||
pub unsafe fn init_ap() {
|
||||
IDTR.load();
|
||||
}
|
||||
|
||||
interrupt!(blank, {
|
||||
asm!("xchg bx, bx" : : : : "intel", "volatile");
|
||||
println!("INTERRUPT");
|
||||
|
||||
});
|
||||
|
||||
interrupt!(exception, {
|
||||
|
|
|
|||
Loading…
Reference in a new issue