mirror of
https://github.com/ipxe/ipxe
synced 2025-12-27 18:12:36 +03:00
[undi] Do not switch to real mode to check for NIC interrupt
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -343,10 +343,10 @@ static void undinet_poll ( struct net_device *netdev ) {
|
|||||||
if ( ! undinet_isr_triggered() ) {
|
if ( ! undinet_isr_triggered() ) {
|
||||||
/* Allow interrupt to occur */
|
/* Allow interrupt to occur */
|
||||||
profile_start ( &undinet_irq_profiler );
|
profile_start ( &undinet_irq_profiler );
|
||||||
__asm__ __volatile__ ( REAL_CODE ( "sti\n\t"
|
__asm__ __volatile__ ( "sti\n\t"
|
||||||
"nop\n\t"
|
"nop\n\t"
|
||||||
"nop\n\t"
|
"nop\n\t"
|
||||||
"cli\n\t" ) : : );
|
"cli\n\t" );
|
||||||
profile_stop ( &undinet_irq_profiler );
|
profile_stop ( &undinet_irq_profiler );
|
||||||
|
|
||||||
/* If interrupts are known to be supported,
|
/* If interrupts are known to be supported,
|
||||||
|
|||||||
Reference in New Issue
Block a user