Fix xHCI event consumption

This commit is contained in:
2026-08-14 20:53:39 +03:00
parent 0cb2169c29
commit bbb9988bcf
+2
View File
@@ -6,6 +6,7 @@
#include "src/lib/layout.h" #include "src/lib/layout.h"
#include "src/lib/memory.h" #include "src/lib/memory.h"
#include "src/lib/util.h" #include "src/lib/util.h"
#include <stdint.h>
#define XHCI_PCI_CLASS 0x0C #define XHCI_PCI_CLASS 0x0C
#define XHCI_PCI_SUBCLASS 0x03 #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); RING_ADVANCE(evt);
intr_regs->erdp = (uint64_t)VIRT_TO_PHYS(&evt_r[evt_r_i]);
} }
return transferred; return transferred;