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

Commit 96c90db

Browse files
authored
v0.1.0 small fix of VGA buffer (#5)
* toml file was added for building the kernel * the target for build was set * implemented basic output using VGA buffer * RandyX: launching via qemu * RandyX: documentation + multikernel architecture * small fix of the vga buffer fn
1 parent f12be2b commit 96c90db

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)