]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[bios] Allow bios_console.c to be compiled for x86_64
authorMichael Brown <mcb30@ipxe.org>
Tue, 16 Feb 2016 18:48:37 +0000 (18:48 +0000)
committerMichael Brown <mcb30@ipxe.org>
Tue, 16 Feb 2016 19:32:32 +0000 (19:32 +0000)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/i386/firmware/pcbios/bios_console.c

index ee6cdce2f261cf8df0627f2ad4c32ac3af36135b..cfffd95428d47f74644a2565e620ae6addd8eec6 100644 (file)
@@ -434,7 +434,7 @@ static int bios_iskey ( void ) {
                                           "pushfw\n\t"
                                           "popw %w0\n\t"
                                           "cli\n\t" )
-                              : "=r" ( flags ), "=a" ( discard_a )
+                              : "=R" ( flags ), "=a" ( discard_a )
                               : "a" ( 0x1100 ), "m" ( bios_inject_lock ) );
        bios_inject_lock--;
        return ( ! ( flags & ZF ) );