• Hugh Dickins's avatar
    x86: fix Intel Mac booting with EFI · 216705d2
    Hugh Dickins authored
    Fedora reports that mem_init()'s zap_low_mappings(), extended to SMP in
    61165d7a x86: fix app crashes after SMP
    resume causes 32-bit Intel Mac machines to reboot very early when
    booting with EFI.
    
    The EFI code appears to manage low mappings for itself when needed; but
    like many before it, confuses PSE with PAE.  So it has only been mapping
    half the space it needed when PSE but not PAE.  This remained unnoticed
    until we moved the SMP zap_low_mappings() before
    efi_enter_virtual_mode().  Presumably could have been noticed years ago
    if anyone ran a UP kernel on such machines?
    Reported-by: default avatarPeter Jones <pjones@redhat.com>
    Signed-off-by: default avatarHugh Dickins <hugh@veritas.com>
    Cc: Peter Jones <pjones@redhat.com>
    Cc: Glauber Costa <gcosta@redhat.com>
    Cc: Andrew Morton <akpm@linux-foundation.org>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    Tested-by: default avatarPeter Jones <pjones@redhat.com>
    216705d2
efi_32.c 2.89 KB