Format OSDK documentation

This commit is contained in:
Jianfeng Jiang
2024-03-01 03:23:47 +00:00
committed by Tate, Hongliang Tian
parent 7fef686136
commit a51b3c7076
18 changed files with 397 additions and 162 deletions

View File

@ -1,5 +1,4 @@
#![no_std]
#![no_main]
#![forbid(unsafe_code)]
#[macro_use]
@ -8,16 +7,6 @@ extern crate ktest;
use aster_frame::prelude::*;
#[aster_main]
fn kernel_main() -> ! {
fn kernel_main() {
println!("Hello world from guest kernel!");
loop {}
}
#[cfg(ktest)]
mod tests {
#[ktest]
fn it_works() {
let memory_regions = aster_frame::boot::memory_regions();
assert!(!memory_regions.is_empty());
}
}

View File

@ -1,4 +1,5 @@
#![no_std]
#![forbid(unsafe_code)]
#[macro_use]
extern crate ktest;