From 39b6d32d86b0755b9862e7adf7b700adfd8717e9 Mon Sep 17 00:00:00 2001 From: Drew Galbraith Date: Fri, 23 Feb 2024 14:46:28 -0800 Subject: [PATCH] [Voyageurs] Fix offset for physical trb address. --- sys/voyageurs/xhci/trb_ring.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/voyageurs/xhci/trb_ring.cpp b/sys/voyageurs/xhci/trb_ring.cpp index 4189727..f251a63 100644 --- a/sys/voyageurs/xhci/trb_ring.cpp +++ b/sys/voyageurs/xhci/trb_ring.cpp @@ -36,7 +36,7 @@ uint64_t TrbRingWriter::EnqueueTrb(const XhciTrb& trb) { } trb_list_[ptr] = trb; - return phys_address_ + (ptr * sizeof(uint64_t)); + return phys_address_ + (ptr * sizeof(XhciTrb)); } bool TrbRingReader::HasNext() {