EHCI: Fix alignment check, the mask wasn't wide enough.

As this is only an assert that shouldn't ever be triggered, this doesn't
change anything in normal operation.
This commit is contained in:
Michael Lotz
2016-03-12 13:12:11 +01:00
parent 3648dc8709
commit ad72f4caed
+1 -1
View File
@@ -447,7 +447,7 @@ EHCI::EHCI(pci_info *info, Stack *stack)
| (0xff << EHCI_QH_CAPS_ISM_SHIFT);
physicalBase += sizeof(interrupt_entry);
if ((physicalBase & 0x10) != 0) {
if ((physicalBase & 0x1f) != 0) {
panic("physical base for interrupt entry %" B_PRId32
" not aligned on 32, interrupt entry structure size %lu\n",
i, sizeof(interrupt_entry));