diff options
author | phk <phk@FreeBSD.org> | 1996-11-28 09:54:38 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1996-11-28 09:54:38 +0000 |
commit | 3c9e2760482ebe6d9f861d5c4a55049304354914 (patch) | |
tree | a58e29ece379da5874804a1668528c48b7d1d965 /sys | |
parent | fdf30b8e67e831e61363240992e5ba583e53f0a1 (diff) | |
download | FreeBSD-src-3c9e2760482ebe6d9f861d5c4a55049304354914.zip FreeBSD-src-3c9e2760482ebe6d9f861d5c4a55049304354914.tar.gz |
Add a timeout here, just like in if_ed.c
Reviewed by: phk
Submitted by: Luigi Rizzo <luidi@labinfo.iet.unipi.it>
Diffstat (limited to 'sys')
-rw-r--r-- | sys/i386/boot/netboot/ns8390.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/i386/boot/netboot/ns8390.c b/sys/i386/boot/netboot/ns8390.c index be476d6..4019bd2 100644 --- a/sys/i386/boot/netboot/ns8390.c +++ b/sys/i386/boot/netboot/ns8390.c @@ -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 /************************************************************************** |