diff --git a/src/kernel/xhci.c b/src/kernel/xhci.c index f7d6c4a..d73db2b 100644 --- a/src/kernel/xhci.c +++ b/src/kernel/xhci.c @@ -6,6 +6,7 @@ #include "src/lib/layout.h" #include "src/lib/memory.h" #include "src/lib/util.h" +#include #define XHCI_PCI_CLASS 0x0C #define XHCI_PCI_SUBCLASS 0x03 @@ -619,6 +620,7 @@ uint16_t xhci_read_endpoint(xhci_slot_t slot, xhci_endpoint_t endpoint, uint16_t } RING_ADVANCE(evt); + intr_regs->erdp = (uint64_t)VIRT_TO_PHYS(&evt_r[evt_r_i]); } return transferred;