ptrace: with_context_memory: use user-space specific page table

This commit is contained in:
Robin Randhawa
2021-01-21 11:50:56 +00:00
parent 65448c2d48
commit 591775874b

View File

@@ -460,7 +460,7 @@ where F: FnOnce(*mut u8) -> Result<()>
let mut active_page_table = unsafe { ActivePageTable::new(PageTableType::User) };
let mut target_page_table = unsafe {
InactivePageTable::from_address(context.arch.get_page_table())
InactivePageTable::from_address(context.arch.get_page_utable())
};
// Find the physical frames for all pages