We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db8f45d commit 17827c8Copy full SHA for 17827c8
os/src/main.rs
@@ -23,6 +23,8 @@
23
#![feature(alloc_error_handler)]
24
#![feature(str_from_raw_parts)]
25
26
+use ksymbol::kernel_func_by_addr;
27
+
28
extern crate alloc;
29
30
#[macro_use]
@@ -67,6 +69,8 @@ pub fn rust_main() -> ! {
67
69
println!("[kernel] Hello, world!");
68
70
mm::init();
71
println!("[kernel] back to world!");
72
+ println!("rust_main addr={:#x} symbol = {:?}", rust_main as usize,
73
+ kernel_func_by_addr(rust_main as usize).unwrap());
74
mm::remap_test();
75
trap::init();
76
//trap::enable_interrupt();
0 commit comments