mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-16 15:44:04 +01:00
Add a timeout here, just like in if_ed.c
Reviewed by: phk Submitted by: Luigi Rizzo <luidi@labinfo.iet.unipi.it>
This commit is contained in:
parent
3faaf0b64a
commit
ff301e1b9b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=20002
@ -644,8 +644,9 @@ eth_pio_write(src, dst, cnt, init)
|
||||
while (cnt--)
|
||||
outb(eth_asic_base + NE_DATA, *(src++));
|
||||
}
|
||||
cnt = 200;
|
||||
while((inb(eth_nic_base + D8390_P0_ISR) & D8390_ISR_RDC)
|
||||
!= D8390_ISR_RDC);
|
||||
!= D8390_ISR_RDC && --cnt);
|
||||
}
|
||||
#else
|
||||
/**************************************************************************
|
||||
|
Loading…
Reference in New Issue
Block a user