• H. Peter Anvin's avatar
    x86 setup: a20: early timeout for a nonexistent keyboard controller · 3bd323a1
    H. Peter Anvin authored
    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>
    3bd323a1
a20.c 3.53 KB