Implement cpu_local with GS and ensure GS points to TSS

This commit is contained in:
Qingsong Chen
2024-09-19 02:11:32 +00:00
committed by Tate, Hongliang Tian
parent 52bde1721e
commit c2f7a10b84
30 changed files with 901 additions and 112 deletions

View File

@ -9,11 +9,13 @@ use core::fmt::Debug;
use bitflags::bitflags;
use log::info;
use spin::Once;
use trapframe::TrapFrame;
use volatile::{access::ReadWrite, Volatile};
use super::registers::Capability;
use crate::{mm::Vaddr, trap::IrqLine};
use crate::{
mm::Vaddr,
trap::{IrqLine, TrapFrame},
};
#[derive(Debug)]
pub struct FaultEventRegisters {