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