Bootable kernel skeleton

This commit is contained in:
Jeremy Soller 2016-08-13 18:21:46 -06:00
commit d5902c5a20
27 changed files with 1702 additions and 3 deletions

11
src/arch/x86_64/main.rs Normal file
View file

@ -0,0 +1,11 @@
/// This function is where the kernel sets up IRQ handlers
/// It is increcibly unsafe, and should be minimal in nature
/// It must create the IDT with the correct entries, those entries are
/// defined in other files inside of the `arch` module
#[naked]
#[no_mangle]
pub unsafe extern fn kmain() {
asm!("xchg bx, bx" : : : : "intel", "volatile");
loop{}
}