Chapter2: Clear .bss inside application.

This commit is contained in:
Yifan Wu 2020-11-22 13:05:16 +08:00
parent 6671f99afb
commit 1414d05325
3 changed files with 13 additions and 1 deletions

View file

@ -7,7 +7,7 @@ extern crate user_lib;
#[no_mangle]
fn main() -> i32 {
println!("Into Test store_fault, we will insert an invalid store behavior...");
println!("Into Test store_fault, we will insert an invalid store operation...");
println!("Kernel should kill this application!");
unsafe { (0x0 as *mut u8).write_volatile(0); }
0