Fixes for building x86_64
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user