blob: bd5a19fba38ec6be23a0064238d411ae476dc05e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#![no_std]
mod panic;
/// The entrypoint to the kernel. This should be executed by hart0 alone. It performs some early
/// boot tasks, then wakes up any other harts.
#[no_mangle]
pub extern "C" fn hart0_boot() {
for byte in "Hello, world!\n".bytes() {
unsafe {
core::ptr::write_volatile(0x10000000 as *mut u8, byte);
}
}
todo!()
}
|