diff --git a/Cargo.toml b/Cargo.toml index 47028254..0e1597db 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "blog_os" version = "0.1.0" authors = ["Philipp Oppermann "] -edition = "2018" +edition = "2024" [[test]] name = "should_panic" diff --git a/src/lib.rs b/src/lib.rs index afdb22cc..2692527b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -72,7 +72,7 @@ pub fn hlt_loop() -> ! { /// Entry point for `cargo xtest` #[cfg(test)] -#[no_mangle] +#[unsafe(no_mangle)] pub extern "C" fn _start() -> ! { init(); test_main(); diff --git a/src/main.rs b/src/main.rs index bf87c601..393871d7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -7,7 +7,7 @@ use blog_os::println; use core::panic::PanicInfo; -#[no_mangle] +#[unsafe(no_mangle)] pub extern "C" fn _start() -> ! { use x86_64::registers::control::Cr3; println!("Hello World{}", "!");