mirror of
https://github.com/ipxe/ipxe
synced 2025-12-22 13:00:39 +03:00
[bios] Allow bzimage.c to be compiled for x86_64
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -631,9 +631,9 @@ static int bzimage_exec ( struct image *image ) {
|
|||||||
"pushw %w2\n\t"
|
"pushw %w2\n\t"
|
||||||
"pushw $0\n\t"
|
"pushw $0\n\t"
|
||||||
"lret\n\t" )
|
"lret\n\t" )
|
||||||
: : "r" ( bzimg.rm_kernel_seg ),
|
: : "R" ( bzimg.rm_kernel_seg ),
|
||||||
"r" ( bzimg.rm_heap ),
|
"R" ( bzimg.rm_heap ),
|
||||||
"r" ( bzimg.rm_kernel_seg + 0x20 ) );
|
"R" ( bzimg.rm_kernel_seg + 0x20 ) );
|
||||||
|
|
||||||
/* There is no way for the image to return, since we provide
|
/* There is no way for the image to return, since we provide
|
||||||
* no return address.
|
* no return address.
|
||||||
|
|||||||
Reference in New Issue
Block a user