#![feature(abi_x86_interrupt, asm)] #![no_std] #![no_main] #[macro_use] mod vga_buffer; mod interrupts; mod gdt; use core::panic::PanicInfo; #[panic_handler] fn panic(info: &PanicInfo) -> !{ println!("{}", info); loop {} } pub fn init() { gdt::init(); interrupts::init_idt(); } #[no_mangle] pub extern "C" fn _start() -> ! { init(); fn yolo() { yolo(); } yolo(); for i in 1..10 { println!("Gamarjoba, munde: {}", i); } loop {} }