From ad72f4caed8e0176da8642c71cd61ce17bfc4cfb Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Sat, 30 Jan 2016 13:24:29 +0100 Subject: [PATCH] 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. --- src/add-ons/kernel/busses/usb/ehci.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/add-ons/kernel/busses/usb/ehci.cpp b/src/add-ons/kernel/busses/usb/ehci.cpp index 7bd4997c1c..c3d71574b1 100644 --- a/src/add-ons/kernel/busses/usb/ehci.cpp +++ b/src/add-ons/kernel/busses/usb/ehci.cpp @@ -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));