mirror of
https://github.com/ipxe/ipxe
synced 2025-12-15 09:04:37 +03:00
[elf] Add execution entry point debug messages for elf/multiboot images
This commit is contained in:
@@ -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 ) ),
|
||||||
|
|||||||
Reference in New Issue
Block a user