syscall: process: empty: Use user-space specific page table

This commit is contained in:
Robin Randhawa
2021-01-21 11:53:35 +00:00
parent 6cacbb47f6
commit 78d1cd1798

View File

@@ -599,7 +599,7 @@ fn empty(context: &mut context::Context, reaping: bool) {
if reaping {
println!("{}: {}: Grant should not exist: {:?}", context.id.into(), unsafe { ::core::str::from_utf8_unchecked(&context.name.lock()) }, grant);
let mut new_table = unsafe { InactivePageTable::from_address(context.arch.get_page_table()) };
let mut new_table = unsafe { InactivePageTable::from_address(context.arch.get_page_utable()) };
let mut temporary_page = TemporaryPage::new(Page::containing_address(VirtualAddress::new(crate::USER_TMP_GRANT_OFFSET)));
grant.unmap_inactive(&mut new_table, &mut temporary_page);