mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-20 09:49:15 +03:00
E1000: Disable interrupts while getting ready to wait on TX completion
This commit is contained in:
parent
7d0583a33f
commit
9d67a6ba34
Notes:
sideshowbarker
2024-07-19 10:51:50 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/9d67a6ba342
@ -340,10 +340,13 @@ void E1000NetworkAdapter::send_raw(const u8* data, int length)
|
||||
#endif
|
||||
tx_current = (tx_current + 1) % number_of_tx_descriptors;
|
||||
out32(REG_TXDESCTAIL, tx_current);
|
||||
cli();
|
||||
enable_irq();
|
||||
for (;;) {
|
||||
if (descriptor.status)
|
||||
if (descriptor.status) {
|
||||
sti();
|
||||
break;
|
||||
}
|
||||
current->wait_on(m_wait_queue);
|
||||
}
|
||||
#ifdef E1000_DEBUG
|
||||
|
Loading…
Reference in New Issue
Block a user