Merge updates from ch7

This commit is contained in:
Yifan Wu 2021-02-28 06:38:13 +08:00
parent 394dd61259
commit c4ee62e338
22 changed files with 477 additions and 62 deletions

View file

@ -1,6 +1,7 @@
use riscv::register::sstatus::{Sstatus, self, SPP};
#[repr(C)]
#[derive(Debug)]
pub struct TrapContext {
pub x: [usize; 32],
pub sstatus: Sstatus,