Compare commits

...

2 Commits

Author SHA1 Message Date
JohnyTheCarrot 01c79d3d6c Merge remote-tracking branch 'origin/chore/refactor-device-info' into chore/refactor-device-info 2023-07-15 15:05:01 +02:00
JohnyTheCarrot ee4117f35e make requested changes 2023-07-15 15:04:53 +02:00
3 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@ pub fn log(_args: core::fmt::Arguments<'_>) -> core::fmt::Result {
panic!()
}
pub fn sloop() -> ! {
pub fn spin_loop() -> ! {
loop {}
}
pub fn hardware_random_u64() -> u64 {

View File

@ -79,7 +79,7 @@ unsafe extern fn _kernel_start() -> ! {
}
/// Spin loop
pub fn sloop() -> ! {
pub fn spin_loop() -> ! {
loop {
unsafe { asm!("wfi") }
}

View File

@ -45,7 +45,7 @@ pub fn kmain(cmdline: &str, boot_modules: BootModules) -> ! {
sched.new_process(boot_modules[1].bytes.clone());
sched.run();
// sloop();
// spin_loop();
}
pub static DEVICE_TREE: Lazy<Mutex<DeviceTree>> = Lazy::new(|| {