mirror of
https://github.com/XunilGroup/XunilOS.git
synced 2026-04-25 19:59:02 +02:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user