Fixes for building x86_64

This commit is contained in:
Jeremy Soller
2021-05-03 20:43:18 -06:00
parent dfdb562e6b
commit 17c261553b
7 changed files with 66 additions and 20 deletions
+2 -2
View File
@@ -54,7 +54,7 @@ impl Context {
}
}
pub fn get_page_table(&mut self) -> usize {
pub fn get_page_utable(&mut self) -> usize {
self.cr3
}
@@ -102,7 +102,7 @@ impl Context {
self.fx = address;
}
pub fn set_page_table(&mut self, address: usize) {
pub fn set_page_utable(&mut self, address: usize) {
self.cr3 = address;
}
+1
View File
@@ -97,6 +97,7 @@ impl ContextList {
}
context.arch.set_page_utable(unsafe { ActivePageTable::new(PageTableType::User).address() });
#[cfg(target_arch = "aarch64")]
context.arch.set_page_ktable(unsafe { ActivePageTable::new(PageTableType::Kernel).address() });
context.arch.set_fx(fx.as_ptr() as usize);
context.arch.set_stack(stack.as_ptr() as usize + offset);