]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[prefix] Use correct register for KEEP_IT_REAL physical address conversion
authorDaniel Pieczko <dpieczko@solarflare.com>
Wed, 12 Aug 2015 10:45:58 +0000 (11:45 +0100)
committerMichael Brown <mcb30@ipxe.org>
Fri, 14 Aug 2015 15:18:54 +0000 (16:18 +0100)
Signed-off-by: Daniel Pieczko <dpieczko@solarflare.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/i386/prefix/libprefix.S

index c514dac78a96b5285a16a0cfe43cd0029c4e5d36..7d5c1ed53c716d7aa121f127b868ed3261d339e6 100644 (file)
@@ -460,11 +460,11 @@ process_bytes:
 
        /* Convert %ds:esi and %es:edi back to physical addresses */
        xorl    %eax, %eax
-       movw    %ds, %cx
+       movw    %ds, %ax
        shll    $4, %eax
        addl    %eax, %esi
        xorl    %eax, %eax
-       movw    %es, %cx
+       movw    %es, %ax
        shll    $4, %eax
        addl    %eax, %edi