Kernel: Preserve RsvdP bits in xHCI controller initialization

This commit is contained in:
Bananymous 2024-11-22 22:18:09 +02:00
parent ce09f35275
commit 1bdabe693f
1 changed files with 2 additions and 2 deletions

View File

@ -230,8 +230,8 @@ namespace Kernel
event_ring_table_entry.rsz = m_event_ring_trb_count; event_ring_table_entry.rsz = m_event_ring_trb_count;
auto& primary_interrupter = runtime.irs[0]; auto& primary_interrupter = runtime.irs[0];
primary_interrupter.erstsz = 1; primary_interrupter.erstsz = (primary_interrupter.erstsz & 0xFFFF0000) | 1;
primary_interrupter.erdp = m_event_ring_region->paddr(); primary_interrupter.erdp = m_event_ring_region->paddr() | XHCI::ERDP::EventHandlerBusy;
primary_interrupter.erstba = m_event_ring_region->paddr() + event_ring_table_offset; primary_interrupter.erstba = m_event_ring_region->paddr() + event_ring_table_offset;
auto& operational = operational_regs(); auto& operational = operational_regs();