Skip to main content

kernel/
main.rs

1//! Strat9-OS kernel entry point
2//!
3//! Legacy entry point for custom bootloader compatibility.
4//! The actual kernel_main implementation is in lib.rs.
5
6#![no_std]
7#![no_main]
8
9extern crate alloc;
10
11use strat9_kernel::boot::entry::KernelArgs;
12
13/// Legacy kernel entry point - forwards to lib.rs implementation
14#[no_mangle]
15pub unsafe extern "C" fn kernel_main(args: *const KernelArgs) -> ! {
16    strat9_kernel::kernel_main(args)
17}