Add a kernel crash function, add a timer using the timer interrupt and

set PIT interval to 1000hz, use a vector inside Framebuffer, remove
without_interrupts from the framebuffer and serial console, move to
usize on primitives, add date at boot and turn on multithreading, add a
boot animation and add a test_performance function with the new timer
This commit is contained in:
csd4ni3l
2026-03-28 21:03:13 +01:00
parent 4a3c1c9ced
commit aa5cd85b48
10 changed files with 301 additions and 128 deletions

View File

@@ -73,10 +73,8 @@ pub fn init_serial_console(start_x: usize, start_y: usize) {
}
pub fn with_serial_console<F: FnOnce(&mut SerialConsole)>(f: F) {
without_interrupts(|| {
let mut guard = SERIAL_CONSOLE.lock();
if let Some(fb) = guard.as_mut() {
f(fb);
}
})
let mut guard = SERIAL_CONSOLE.lock();
if let Some(fb) = guard.as_mut() {
f(fb);
}
}