__efi64_mb2_start() makes some bold assumptions about the efi_platform and
skip_realmode booleans. Set them to 1 explicitly, which is more robust.
Make the comment a little more concise.
No practical change.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Frediano Ziglio <frediano.ziglio@cloud.com>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
pop %rbx
pop %rax
- /* We are on EFI platform and EFI boot services are available. */
- incb efi_platform(%rip)
-
/*
- * Disable real mode and other legacy stuff which should not
- * be run on EFI platforms.
+ * efi_multiboot2_prelude() is happy that we're on EFI platform. Skip
+ * the BIOS initialisation path.
*/
- incb skip_realmode(%rip)
+ movb $1, efi_platform(%rip)
+ movb $1, skip_realmode(%rip)
/* Jump to trampoline_setup after switching CPU to x86_32 mode. */
lea trampoline_setup(%rip),%r15