qemu: Fix GateA20 enabling.

GateA20 code was inactive due to address error.
This commit is contained in:
Vladimir Serbinenko 2015-02-21 20:00:18 +01:00
parent e62ca2a870
commit 8afd8f3b64

View file

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