arch specific updates to the kernel

This commit is contained in:
able 2022-06-18 15:00:16 -05:00
parent 00a7a884d8
commit 236949682e
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;