Skip to content
  • Jeremy Fitzhardinge's avatar
    x86: check for and defend against BIOS memory corruption · 5394f80f
    Jeremy Fitzhardinge authored
    
    
    Some BIOSes have been observed to corrupt memory in the low 64k.  This
    change:
     - Reserves all memory which does not have to be in that area, to
       prevent it from being used as general memory by the kernel.  Things
       like the SMP trampoline are still in the memory, however.
     - Clears the reserved memory so we can observe changes to it.
     - Adds a function check_for_bios_corruption() which checks and reports on
       memory becoming unexpectedly non-zero.  Currently it's called in the
       x86 fault handler, and the powermanagement debug output.
    
    Signed-off-by: default avatarJeremy Fitzhardinge <jeremy@goop.org>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    5394f80f