Skip to content
Commit 3bd323a1 authored by H. Peter Anvin's avatar H. Peter Anvin
Browse files

x86 setup: a20: early timeout for a nonexistent keyboard controller



When probing the keyboard controller to enable A20, if we get FF back
(which is *possible* as a valid status word, but is extremely
unlikely) then bail after much fewer iterations than we otherwise
would, and abort the attempt to access the KBC.

This hopefully should make it work a lot better for embedded platforms
which don't have a KBC and where the BIOS doesn't implement
INT 15h AX=2401h (and doesn't boot with A20 already enabled.)

If this works, it will be the one remaining use of CONFIG_X86_ELAN as
anything other than a processor type optimization option.

Signed-off-by: default avatarH. Peter Anvin <hpa@linux.intel.com>
parent 042cbaf8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment