We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2159355 commit 8ac06b2Copy full SHA for 8ac06b2
src/arch/x86/kernel/vga.rs
@@ -1,5 +1,5 @@
1
use core::fmt;
2
-use spin::Mutex;
+use spinning_top::Spinlock;
3
use x86::io::*;
4
5
const CRT_CONTROLLER_ADDRESS_PORT: u16 = 0x3D4;
@@ -13,7 +13,7 @@ const COLS: usize = 80;
13
const ROWS: usize = 25;
14
const VGA_BUFFER_ADDRESS: u64 = 0xB8000;
15
16
-pub(crate) static VGA_SCREEN: Mutex<VgaScreen> = Mutex::new(VgaScreen::new());
+pub(crate) static VGA_SCREEN: Spinlock<VgaScreen> = Spinlock::new(VgaScreen::new());
17
18
#[derive(Clone, Copy)]
19
#[repr(C, packed)]
0 commit comments