Bläddra i källkod

[bios] Allow bzimage.c to be compiled for x86_64

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 9 år sedan
förälder
incheckning
4d224c95d4
1 ändrade filer med 3 tillägg och 3 borttagningar
  1. 3
    3
      src/arch/i386/image/bzimage.c

+ 3
- 3
src/arch/i386/image/bzimage.c Visa fil

@@ -631,9 +631,9 @@ static int bzimage_exec ( struct image *image ) {
631 631
 					   "pushw %w2\n\t"
632 632
 					   "pushw $0\n\t"
633 633
 					   "lret\n\t" )
634
-			       : : "r" ( bzimg.rm_kernel_seg ),
635
-			           "r" ( bzimg.rm_heap ),
636
-			           "r" ( bzimg.rm_kernel_seg + 0x20 ) );
634
+			       : : "R" ( bzimg.rm_kernel_seg ),
635
+			           "R" ( bzimg.rm_heap ),
636
+			           "R" ( bzimg.rm_kernel_seg + 0x20 ) );
637 637
 
638 638
 	/* There is no way for the image to return, since we provide
639 639
 	 * no return address.

Laddar…
Avbryt
Spara