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:
Adrian Danis
2016-12-09 11:44:15 +11:00
parent 2fe3871b57
commit 6cf6d4909a

View File

@@ -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.");