Skip to content

Commit ad88dd7

Browse files
committed
global var use
1 parent ccc24ef commit ad88dd7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/vga_buffer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,6 @@ lazy_static! {
114114
pub static ref WRITER:Mutex<Writer> = Mutex::new(Writer{
115115
column_position:0,
116116
color_code:ColorCode::new(Color::LightCyan,Color::Black),
117-
buffer:unsafe{&mut *(0xb8000 as *mut Buffer)}
117+
buffer:unsafe{&mut *(VGA_BUFFER_ADDR as *mut Buffer)}
118118
});
119119
}

0 commit comments

Comments
 (0)