Support proc partially with aarch64

This commit is contained in:
Jeremy Soller
2022-08-20 14:45:45 -06:00
parent 9b8abfc5d7
commit 9dd069c8ca
3 changed files with 141 additions and 80 deletions
+10
View File
@@ -208,6 +208,16 @@ impl Context {
}
}
impl super::Context {
pub fn get_fx_regs(&self) -> FloatRegisters {
self.arch.get_fx_regs().expect("TODO: make get_fx_regs always valid")
}
pub fn set_fx_regs(&mut self, mut new: FloatRegisters) {
assert!(self.arch.set_fx_regs(new), "TODO: make set_fx_regs always valid")
}
}
pub static EMPTY_CR3: Once<rmm::PhysicalAddress> = Once::new();
// SAFETY: EMPTY_CR3 must be initialized.