mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Use bootloader_api::entry_point macro
This commit is contained in:
@@ -3,8 +3,9 @@
|
||||
|
||||
use core::panic::PanicInfo;
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "C" fn _start() -> ! {
|
||||
bootloader_api::entry_point!(kernel_main);
|
||||
|
||||
fn kernel_main(bootinfo: &'static mut bootloader_api::BootInfo) -> ! {
|
||||
loop {}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user