pub fn init() {
    unsafe {
        // Start STIE to enable clock interrupt
        sie::set_stimer();
        // Start SIE (not sie register), Allow kernel mode to be interrupted by interrupt
        // sstatus::set_sie();
    }
    // Set the next clock interrupt
    set_next_timeout();
}
// init clock interupt
// Turn on the clock interrupt enable and schedule the first clock interrupt
init clock interupt
Turn on the clock interrupt enable and schedule the first clock interrupt
init clock interupt Turn on the clock interrupt enable and schedule the first clock interrupt
pub fn init() {
    unsafe {
        // Start STIE to enable clock interrupt
        sie::set_stimer();
        // Start SIE (not sie register), Allow kernel mode to be interrupted by interrupt
        // sstatus::set_sie();
    }
    // Set the next clock interrupt
    set_next_timeout();
}
pub fn init ( ) { unsafe { // Start STIE to enable clock interrupt sie :: set_stimer ( ) ; // Start SIE (not sie register), Allow kernel mode to be interrupted by interrupt // sstatus::set_sie(); } // Set the next clock interrupt set_next_timeout ( ) ; }
init clock interupt
Turn on the clock interrupt enable and schedule the first clock interrupt
init clock interupt Turn on the clock interrupt enable and schedule the first clock interrupt