Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit 463047f

Browse files
committed
small fix of the vga buffer fn
1 parent 4758772 commit 463047f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

os/kernel/core/vga_output.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
pub fn vga_output_message(HELLO: &[u8]) {
1+
pub fn vga_output_message(message: &[u8]) {
22
let vga_buffer = 0xb8000 as *mut u8;
33

4-
for(i, &byte) in HELLO.iter().enumerate(){
4+
for(i, &byte) in message.iter().enumerate(){
55
unsafe {
66
*vga_buffer.offset(i as isize * 2) = byte;
77
*vga_buffer.offset(i as isize * 2 + 1) = 0xb;

0 commit comments

Comments
 (0)