From: Michael Brown Date: Tue, 16 Feb 2016 18:41:58 +0000 (+0000) Subject: [bios] Allow bzimage.c to be compiled for x86_64 X-Git-Tag: v1.20.1~602 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d224c95d4980acebfb1d3b455c119424130cd15;p=thirdparty%2Fipxe.git [bios] Allow bzimage.c to be compiled for x86_64 Signed-off-by: Michael Brown --- diff --git a/src/arch/i386/image/bzimage.c b/src/arch/i386/image/bzimage.c index a64206cd3..d9b5ddc07 100644 --- a/src/arch/i386/image/bzimage.c +++ b/src/arch/i386/image/bzimage.c @@ -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.