Skip to content

Commit

Permalink
fix the pde new small
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhiyuanSue committed Jul 17, 2024
1 parent 5a0ea35 commit 4757f76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/syscall/invocation/invoke_mmu_op.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ pub fn invoke_page_table_map(
vaddr: usize,
) -> exception_t {
let paddr = pptr_to_paddr(pt_cap.get_pt_base_ptr());
let pde = PTE::new(paddr >> seL4_PageBits, PTEFlags::VALID).as_pde();
let pde = PDE::new_small(paddr >> seL4_PageBits);
*pd_slot = pde;
pt_cap.set_pt_is_mapped(1);
pt_cap.set_pt_mapped_asid(asid);
Expand Down

0 comments on commit 4757f76

Please sign in to comment.