mirror of
https://github.com/rcore-os/rCore-Tutorial-v3.git
synced 2024-11-24 10:26:25 +04:00
add comments
This commit is contained in:
parent
74dd4b6284
commit
d472055745
@ -35,16 +35,16 @@ fn clear_bss() {
|
||||
#[no_mangle]
|
||||
pub fn rust_main() -> ! {
|
||||
extern "C" {
|
||||
fn stext();
|
||||
fn etext();
|
||||
fn srodata();
|
||||
fn erodata();
|
||||
fn sdata();
|
||||
fn edata();
|
||||
fn sbss();
|
||||
fn ebss();
|
||||
fn boot_stack();
|
||||
fn boot_stack_top();
|
||||
fn stext(); // begin addr of text segment
|
||||
fn etext(); // end addr of text segment
|
||||
fn srodata(); // start addr of Read-Only data segment
|
||||
fn erodata(); // end addr of Read-Only data ssegment
|
||||
fn sdata(); // start addr of data segment
|
||||
fn edata() // end addr of data segment
|
||||
fn sbss(); // start addr of BSS segment
|
||||
fn ebss(); // end addr of BSS segment
|
||||
fn boot_stack(); // stack bottom
|
||||
fn boot_stack_top(); // stack top
|
||||
}
|
||||
clear_bss();
|
||||
println!("Hello, world!");
|
||||
|
Loading…
Reference in New Issue
Block a user