Lines 835-840
Link Here
|
835 |
{ |
835 |
{ |
836 |
int t; |
836 |
int t; |
837 |
int f; |
837 |
int f; |
|
|
838 |
int waited = 0; |
838 |
#if KBDIO_DEBUG >= 2 |
839 |
#if KBDIO_DEBUG >= 2 |
839 |
int c1 = 0; |
840 |
int c1 = 0; |
840 |
int c2 = 0; |
841 |
int c2 = 0; |
Lines 855-860
Link Here
|
855 |
} else { |
856 |
} else { |
856 |
t -= delta; |
857 |
t -= delta; |
857 |
} |
858 |
} |
|
|
859 |
|
860 |
/* |
861 |
* Some systems (Intel/IBM blades) do not have keyboard devices and |
862 |
* will thus hang in this procedure. Time out after delta seconds to |
863 |
* avoid this hang -- the keyboard attach will fail later on. |
864 |
*/ |
865 |
waited += (delta * 1000); |
866 |
if (waited == (delta * 1000000)) |
867 |
return; |
868 |
|
858 |
DELAY(delta*1000); |
869 |
DELAY(delta*1000); |
859 |
} |
870 |
} |
860 |
#if KBDIO_DEBUG >= 2 |
871 |
#if KBDIO_DEBUG >= 2 |
861 |
- end patch -- |
|
|