|
|
|
@ -17,14 +17,17 @@ extern "C" {
|
|
|
|
|
fn etext();
|
|
|
|
|
fn sbss();
|
|
|
|
|
fn ebss();
|
|
|
|
|
fn boot_stack_top_bound();
|
|
|
|
|
fn boot_stack_lower_bound();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[no_mangle]
|
|
|
|
|
pub fn rust_main(){
|
|
|
|
|
init_bss();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
println!("stext: {:#x}, etext: {:#x}", stext as usize, etext as usize);
|
|
|
|
|
println!("sbss: {:#x}, ebss: {:#x}", sbss as usize, ebss as usize);
|
|
|
|
|
println!("boot_stack_top_bound: {:#x}, boot_stack_lower_bound: {:#x}", boot_stack_top_bound as usize, boot_stack_lower_bound as usize);
|
|
|
|
|
|
|
|
|
|
panic!("my panic");
|
|
|
|
|
}
|
|
|
|
|