Merge branch 'post-04' into post-05

This commit is contained in:
Philipp Oppermann
2025-03-27 15:50:18 +01:00
2 changed files with 3 additions and 3 deletions

View File

@@ -7,7 +7,7 @@
use blog_os::println; use blog_os::println;
use core::panic::PanicInfo; use core::panic::PanicInfo;
#[no_mangle] // don't mangle the name of this function #[unsafe(no_mangle)] // don't mangle the name of this function
pub extern "C" fn _start() -> ! { pub extern "C" fn _start() -> ! {
test_main(); test_main();

View File

@@ -1,10 +1,10 @@
#![no_std] #![no_std]
#![no_main] #![no_main]
use blog_os::{exit_qemu, serial_print, serial_println, QemuExitCode}; use blog_os::{QemuExitCode, exit_qemu, serial_print, serial_println};
use core::panic::PanicInfo; use core::panic::PanicInfo;
#[no_mangle] #[unsafe(no_mangle)]
pub extern "C" fn _start() -> ! { pub extern "C" fn _start() -> ! {
should_fail(); should_fail();
serial_println!("[test did not panic]"); serial_println!("[test did not panic]");