]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
qemu: Fix GateA20 enabling.
authorVladimir Serbinenko <phcoder@gmail.com>
Sat, 21 Feb 2015 19:00:18 +0000 (20:00 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Sat, 21 Feb 2015 19:00:18 +0000 (20:00 +0100)
GateA20 code was inactive due to address error.

grub-core/boot/i386/qemu/boot.S

index 354436eeb89fcb1654afbc3206695bfa4fe2ca93..c5343bfb5e5d82ca054fb99d36dd1278362aa98d 100644 (file)
@@ -50,6 +50,7 @@ VARIABLE(grub_core_entry_addr)
        pushl   $1f
        jmp     real_to_prot
        .code32
+1:
        /* Ensure A20 is enabled. We're in qemu, so control port A works
           and there is no need to wait since there is no real logic, it's
           all emulated.  */
@@ -57,7 +58,6 @@ VARIABLE(grub_core_entry_addr)
        andb    $(~0x03), %al
        orb     $0x02, %al
        outb    $0x92
-1:
        movl    EXT_C(grub_core_entry_addr), %edx
        jmp     *%edx