Kernel: Fix E1000 interrupt handling condition

I had written the ICR register check backwards which lead to interrupt
handling only when it was not needed, and no handling when it was
needed. This somehow still worked, just much slower often requiring tcp
resends from the server.
This commit is contained in:
2024-05-21 01:52:19 +03:00
parent ee8fca9439
commit e00b92225d

View File

@@ -290,7 +290,7 @@ namespace Kernel
void E1000::handle_irq()
{
if (read32(REG_ICR) & ICR_RxQ0)
if (!(read32(REG_ICR) & ICR_RxQ0))
return;
SpinLockGuard _(m_lock);