From 47a480009ff5a4ac44577b3fcbf128b94f4ce7ef Mon Sep 17 00:00:00 2001 From: csd4ni3l Date: Wed, 1 Apr 2026 14:18:17 +0200 Subject: [PATCH] Fix sleep not being imported and re-add the boot_animation. --- kernel/src/userspace_stub.rs | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/kernel/src/userspace_stub.rs b/kernel/src/userspace_stub.rs index 6442bcb..99bf2f2 100644 --- a/kernel/src/userspace_stub.rs +++ b/kernel/src/userspace_stub.rs @@ -2,7 +2,10 @@ use alloc::string::ToString; use x86_64::structures::paging::OffsetPageTable; use crate::{ - arch::{arch::run_elf, x86_64::paging::XunilFrameAllocator}, + arch::{ + arch::{run_elf, sleep}, + x86_64::paging::XunilFrameAllocator, + }, driver::{ elf::loader::load_file, graphics::{ @@ -43,7 +46,7 @@ fn boot_animation() { let mut height = 0; with_framebuffer(|fb| { - fb.clear(rgb(253, 129, 0)); + fb.clear(rgb(77, 171, 245)); width = fb.width; height = fb.height; }); @@ -71,7 +74,7 @@ fn boot_animation() { }); with_framebuffer(|fb| { - fb.clear(rgb(253, 129, 0)); + fb.clear(rgb(77, 171, 245)); }); } @@ -81,8 +84,10 @@ pub fn userspace_init( ) -> ! { // this is just a stub + boot_animation(); + let entry_point = load_file(frame_allocator, mapper, TEST_ELF_BYTES); - println!("{:?}", entry_point); + println!("Entry point: {:?}", entry_point); with_framebuffer(|fb| fb.swap()); @@ -100,7 +105,7 @@ pub fn userspace_init( // loop { // with_serial_console(|serial_console| serial_console.clear(0, 0)); - // with_framebuffer(|fb| fb.clear(rgb(253, 129, 0))); + // with_framebuffer(|fb| fb.clear(rgb(77, 171, 245))); // test_performance(|| { // mouse_status = MOUSE.get_status(); // with_framebuffer(|mut fb| {