14 lines
328 B
Rust
14 lines
328 B
Rust
#![no_main]
|
|
#![no_std]
|
|
|
|
#[unsafe(export_name = "_start")]
|
|
pub extern "C" fn main() -> ! {
|
|
kernel::serial_println!("Hello, world!");
|
|
kernel::testing::exit_qemu(kernel::testing::QemuExitCode::Success)
|
|
}
|
|
|
|
#[panic_handler]
|
|
fn panic_thunk(info: &core::panic::PanicInfo) -> ! {
|
|
kernel::testing::test_panic_handler(info)
|
|
}
|