mirror of https://github.com/ipxe/ipxe.git
[elf] Add execution entry point debug messages for elf/multiboot images
parent
0ffc3f6285
commit
4815188dfc
|
@ -49,6 +49,7 @@ static int elfboot_exec ( struct image *image ) {
|
||||||
shutdown ( SHUTDOWN_BOOT );
|
shutdown ( SHUTDOWN_BOOT );
|
||||||
|
|
||||||
/* Jump to OS with flat physical addressing */
|
/* Jump to OS with flat physical addressing */
|
||||||
|
DBGC ( image, "ELF %p starting execution at %lx\n", image, entry );
|
||||||
__asm__ __volatile__ ( PHYS_CODE ( "call *%%edi\n\t" )
|
__asm__ __volatile__ ( PHYS_CODE ( "call *%%edi\n\t" )
|
||||||
: : "D" ( entry )
|
: : "D" ( entry )
|
||||||
: "eax", "ebx", "ecx", "edx", "esi", "ebp",
|
: "eax", "ebx", "ecx", "edx", "esi", "ebp",
|
||||||
|
|
|
@ -280,6 +280,8 @@ static int multiboot_exec ( struct image *image ) {
|
||||||
shutdown ( SHUTDOWN_BOOT );
|
shutdown ( SHUTDOWN_BOOT );
|
||||||
|
|
||||||
/* Jump to OS with flat physical addressing */
|
/* Jump to OS with flat physical addressing */
|
||||||
|
DBGC ( image, "MULTIBOOT %p starting execution at %lx\n",
|
||||||
|
image, entry );
|
||||||
__asm__ __volatile__ ( PHYS_CODE ( "call *%%edi\n\t" )
|
__asm__ __volatile__ ( PHYS_CODE ( "call *%%edi\n\t" )
|
||||||
: : "a" ( MULTIBOOT_BOOTLOADER_MAGIC ),
|
: : "a" ( MULTIBOOT_BOOTLOADER_MAGIC ),
|
||||||
"b" ( virt_to_phys ( &mbinfo ) ),
|
"b" ( virt_to_phys ( &mbinfo ) ),
|
||||||
|
|
Loading…
Reference in New Issue