forked from Imagelibrary/seL4
x86: Align IO page tables to the range of an IO PT
Previously it was aligned to a page size, but this makes no sense as it should actually be aligned to the virtual size of a PT
This commit is contained in:
@@ -212,7 +212,7 @@ decodeX86IOPTInvocation(
|
||||
}
|
||||
|
||||
io_space = excaps.excaprefs[0]->cap;
|
||||
io_address = getSyscallArg(0, buffer) & ~MASK(PAGE_BITS);
|
||||
io_address = getSyscallArg(0, buffer) & ~MASK(VTD_PT_INDEX_BITS + seL4_PageBits);
|
||||
|
||||
if (cap_io_page_table_cap_get_capIOPTIsMapped(cap)) {
|
||||
userError("X86IOPageTableMap: IO page table is already mapped.");
|
||||
|
||||
Reference in New Issue
Block a user