GDT and IDT in kernel space
Paging constructs completed, remap kernel before jumping to kmain Panic will do a stack trace Remove SSE from none target
This commit is contained in:
parent
465363f0a1
commit
cc8fe85e6a
18 changed files with 524 additions and 236 deletions
|
@ -4,12 +4,14 @@
|
|||
#![feature(concat_idents)]
|
||||
#![feature(const_fn)]
|
||||
#![feature(core_intrinsics)]
|
||||
#![feature(lang_items)]
|
||||
#![feature(naked_functions)]
|
||||
#![feature(unique)]
|
||||
#![no_std]
|
||||
|
||||
#[macro_use]
|
||||
extern crate bitflags;
|
||||
extern crate x86;
|
||||
|
||||
/// Print to console
|
||||
#[macro_export]
|
||||
|
@ -37,6 +39,8 @@ macro_rules! interrupt {
|
|||
$func
|
||||
}
|
||||
|
||||
asm!("xchg bx, bx" : : : : "intel", "volatile");
|
||||
|
||||
// Push scratch registers
|
||||
asm!("push rax
|
||||
push rcx
|
||||
|
@ -92,6 +96,9 @@ pub mod memory;
|
|||
/// Paging
|
||||
pub mod paging;
|
||||
|
||||
/// Panic
|
||||
pub mod panic;
|
||||
|
||||
/// Serial driver and print! support
|
||||
pub mod serial;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue