]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[elf] Add execution entry point debug messages for elf/multiboot images
authorMichael Brown <mcb30@etherboot.org>
Fri, 22 Aug 2008 01:12:44 +0000 (02:12 +0100)
committerMichael Brown <mcb30@etherboot.org>
Fri, 22 Aug 2008 01:12:44 +0000 (02:12 +0100)
src/arch/i386/image/elfboot.c
src/arch/i386/image/multiboot.c

index 60c54992adab180d214987532ec8a79d6dbe329b..c8daf72bb5d0893416b1609fa00b80969539660b 100644 (file)
@@ -49,6 +49,7 @@ static int elfboot_exec ( struct image *image ) {
        shutdown ( SHUTDOWN_BOOT );
 
        /* 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" )
                               : : "D" ( entry )
                               : "eax", "ebx", "ecx", "edx", "esi", "ebp",
index d7c2b8dab1edfcd919ab3f4c481eb9d7cc5b008f..3aa52e431eeec5102414fd03fb9714eb8eb7c23f 100644 (file)
@@ -280,6 +280,8 @@ static int multiboot_exec ( struct image *image ) {
        shutdown ( SHUTDOWN_BOOT );
 
        /* 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" )
                               : : "a" ( MULTIBOOT_BOOTLOADER_MAGIC ),
                                   "b" ( virt_to_phys ( &mbinfo ) ),