When enabling A20, put upper limit on amount of time we wait for the
authorYONETANI Tomokazu <y0netan1@dragonflybsd.org>
Sun, 22 Apr 2007 10:43:00 +0000 (10:43 +0000)
committerYONETANI Tomokazu <y0netan1@dragonflybsd.org>
Sun, 22 Apr 2007 10:43:00 +0000 (10:43 +0000)
commit269ffd40655c28ffc04742b158e7500aec5b0166
treeea95525298e328cb19b146fee45b66818844d19a
parent7c098eb5a59b7894dd1636c61a53df4507679825
When enabling A20, put upper limit on amount of time we wait for the
keyboard controller to get ready (65K x ISA access time, visually
around 1 second).  If we have wait more than that amount it's likely
that the hardware is a legacy-free one and simply doesn't have keyboard
controller and doesn't require enabling A20 at all.

Taken-from: FreeBSD (with modifications suggested by Matt)

 relavant commit logs(and discussion):
  http://docs.FreeBSD.org/cgi/mid.cgi?200604110439.k3B4dTOD072774
  http://docs.FreeBSD.org/cgi/mid.cgi?200604112053.k3BKrnC1053262
  http://docs.FreeBSD.org/cgi/mid.cgi?200604260605.k3Q65GZZ095546
sys/boot/i386/cdboot/cdboot.S
sys/boot/i386/pxeldr/pxeldr.S
sys/dev/misc/atkbdc_layer/atkbdc_isa.c
sys/dev/misc/kbd/atkbd.c
sys/dev/misc/kbd/atkbdc.c