]> git.proxmox.com Git - qemu.git/blobdiff - pc-bios/optionrom/multiboot.S
multiboot: fix e801 memory map
[qemu.git] / pc-bios / optionrom / multiboot.S
index f08222a3c61d9dc4cddbb39c0d7fe33b3f03bb3a..003bcfb49fa0e72429d97bfbf9dd3a464f72a105 100644 (file)
@@ -75,6 +75,13 @@ run_multiboot:
        shr             $4, %eax
        mov             %ax, %fs
 
+       /* Account for the EBDA in the multiboot structure's e801
+        * map.
+        */
+       int             $0x12
+       cwtl
+       movl            %eax, %fs:4
+
        /* ES = mmap_addr */
        mov             %fs:48, %eax
        shr             $4, %eax