]> git.lizzy.rs Git - loadnothing.git/blob - stage2/src/main.rs
Start VGA API
[loadnothing.git] / stage2 / src / main.rs
1 #![no_std]
2 #![no_main]
3
4 #![warn(clippy::arithmetic)]
5
6 mod vga;
7
8 use core::arch::asm;
9 use core::panic::PanicInfo;
10
11 #[panic_handler]
12 fn panic(_info: &PanicInfo) -> ! {
13     loop {}
14 }
15
16 #[no_mangle]
17 pub extern "C" fn _start() -> ! {
18     vga::test_print();
19
20     unsafe {
21         loop {
22             asm!("hlt");
23         }
24     }
25 }