forked from Bananymous/banan-os
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:
parent
ee8fca9439
commit
e00b92225d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue