#![no_std]
#![no_main]
use core::ptr::{null_mut, read_volatile};
use user_lib::*;

#[no_mangle]
fn main() -> i32 {
    println!("\nstore_fault APP running...\n");
    // 在Test store_fault中，我们将插入一个无效的存储操作…
    println!("Into Test store_fault, we will insert an invalid store operation...");
    
    println!("Kernel should kill this application!");
    unsafe {
        null_mut::<u8>().write_volatile(1);
    }
    0
}