arch specific updates to the kernel

master
able 2022-06-18 15:00:16 -05:00
parent a42c807af5
commit f978ca0f3f
3 changed files with 16 additions and 0 deletions

6
kernel/src/arch/mod.rs Normal file
View File

@ -0,0 +1,6 @@
//! Architecture-specific code.
/// X86 specific code
#[cfg(target_arch = "x86_64")]
#[path = "x86_64/mod.rs"]
pub mod arch;

View File

@ -0,0 +1,9 @@
///
pub fn sloop() {
loop {
unsafe {
core::arch::asm!("hlt");
}
}
}

View File

@ -9,6 +9,7 @@
extern crate alloc;
pub mod allocator;
pub mod arch;
pub mod device_interface;
pub mod messaging;
pub mod panic;