mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Remove striped output example again
This commit is contained in:
@@ -9,10 +9,8 @@ bootloader_api::entry_point!(kernel_main);
|
|||||||
|
|
||||||
fn kernel_main(boot_info: &'static mut BootInfo) -> ! {
|
fn kernel_main(boot_info: &'static mut BootInfo) -> ! {
|
||||||
if let Some(framebuffer) = boot_info.framebuffer.as_mut() {
|
if let Some(framebuffer) = boot_info.framebuffer.as_mut() {
|
||||||
let mut value = 0x90;
|
|
||||||
for byte in framebuffer.buffer_mut() {
|
for byte in framebuffer.buffer_mut() {
|
||||||
*byte = value;
|
*byte = 0x90;
|
||||||
value = value.wrapping_add(1);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
loop {}
|
loop {}
|
||||||
|
|||||||
Reference in New Issue
Block a user