PCI XHCI disable page chaching for mmio
This commit is contained in:
@@ -61,10 +61,9 @@ bool pci_xhci_init (struct proc* proc, struct reschedule_ctx* rctx, struct pci_i
|
||||
|
||||
uintptr_t xhci_base = xhci_phys + (uintptr_t)hhdm->offset;
|
||||
|
||||
/* 2 pages should cover the mmio space */
|
||||
for (size_t page = 0; page < 8; page++) {
|
||||
mm_map_kernel_page (xhci_phys + page * PAGE_SIZE, xhci_base + page * PAGE_SIZE,
|
||||
MM_PG_RW | MM_PG_PRESENT);
|
||||
MM_PG_RW | MM_PG_PRESENT | MM_PG_NOCACHE);
|
||||
}
|
||||
|
||||
bool irqs_support = false;
|
||||
|
||||
Reference in New Issue
Block a user