]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[bios] Allow bzimage.c to be compiled for x86_64
authorMichael Brown <mcb30@ipxe.org>
Tue, 16 Feb 2016 18:41:58 +0000 (18:41 +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/image/bzimage.c

index a64206cd38944cf6be26cdc5003ae95d8f035ee2..d9b5ddc073f071ccd053b0681d5fc3d70ce9c3f8 100644 (file)
@@ -631,9 +631,9 @@ static int bzimage_exec ( struct image *image ) {
                                           "pushw %w2\n\t"
                                           "pushw $0\n\t"
                                           "lret\n\t" )
-                              : : "r" ( bzimg.rm_kernel_seg ),
-                                  "r" ( bzimg.rm_heap ),
-                                  "r" ( bzimg.rm_kernel_seg + 0x20 ) );
+                              : : "R" ( bzimg.rm_kernel_seg ),
+                                  "R" ( bzimg.rm_heap ),
+                                  "R" ( bzimg.rm_kernel_seg + 0x20 ) );
 
        /* There is no way for the image to return, since we provide
         * no return address.