feat(grub): add multi-boot support and long mode swap

Signed-off-by: Julien CLEMENT <julien.clement@epita.fr>
This commit is contained in:
juju committed 2021-11-29 14:59:34 +01:00
1 parent b3edf35855
commit 30c103a6b3
11 files changed
+279 -15

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
#![no_std]
#![no_main]
#[panic_handler]
fn panic(_info: &core::panic::PanicInfo) -> !
{
loop {}
}
static HELLO: &[u8] = b"Welcome to the JuliOS";
#[no_mangle]
pub extern "C" fn julios_main() -> !
{
let vga_buffer: *mut u8 = 0xb8000 as *mut u8;
for (i, &byte) in HELLO.iter().enumerate()
{
unsafe
{
*vga_buffer.offset(i as isize * 2) = byte;
*vga_buffer.offset(i as isize * 2 + 1) = 0xb;
}
}
loop {}
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.