Chapter2: Clear .bss inside application.
This commit is contained in:
parent
6671f99afb
commit
1414d05325
3 changed files with 13 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue