Skip to content

Commit 8ac06b2

Browse files
committed
using locks from crate spinning_top
1 parent 2159355 commit 8ac06b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/arch/x86/kernel/vga.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use core::fmt;
2-
use spin::Mutex;
2+
use spinning_top::Spinlock;
33
use x86::io::*;
44

55
const CRT_CONTROLLER_ADDRESS_PORT: u16 = 0x3D4;
@@ -13,7 +13,7 @@ const COLS: usize = 80;
1313
const ROWS: usize = 25;
1414
const VGA_BUFFER_ADDRESS: u64 = 0xB8000;
1515

16-
pub(crate) static VGA_SCREEN: Mutex<VgaScreen> = Mutex::new(VgaScreen::new());
16+
pub(crate) static VGA_SCREEN: Spinlock<VgaScreen> = Spinlock::new(VgaScreen::new());
1717

1818
#[derive(Clone, Copy)]
1919
#[repr(C, packed)]

0 commit comments

Comments
 (0)