Map kernel in AP, WIP
This commit is contained in:
parent
27d5996abf
commit
ebf9766ef5
10 changed files with 89 additions and 50 deletions
|
@ -44,8 +44,6 @@ macro_rules! interrupt {
|
|||
$func
|
||||
}
|
||||
|
||||
asm!("xchg bx, bx" : : : : "intel", "volatile");
|
||||
|
||||
// Push scratch registers
|
||||
asm!("push rax
|
||||
push rcx
|
||||
|
@ -87,8 +85,6 @@ macro_rules! interrupt_error {
|
|||
$func
|
||||
}
|
||||
|
||||
asm!("xchg bx, bx" : : : : "intel", "volatile");
|
||||
|
||||
// Push scratch registers, grab stack pointer
|
||||
asm!("push rax
|
||||
push rcx
|
||||
|
@ -159,4 +155,3 @@ pub mod start;
|
|||
pub mod tss;
|
||||
|
||||
pub static ALLOCATOR: Mutex<Option<memory::AreaFrameAllocator>> = Mutex::new(None);
|
||||
pub static PAGE_TABLE: Mutex<Option<paging::ActivePageTable>> = Mutex::new(None);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue