summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Brown2008-08-22 03:12:44 +0200
committerMichael Brown2008-08-22 03:12:44 +0200
commit4815188dfc5fe6f5838a04d3a55e6a78d6dfb5fa (patch)
tree3c44395eac6f4500704b2713bbcf265c6fc9229f
parent[pxe] Add extra debug messages to the PXE UDP API calls (diff)
downloadipxe-4815188dfc5fe6f5838a04d3a55e6a78d6dfb5fa.tar.gz
ipxe-4815188dfc5fe6f5838a04d3a55e6a78d6dfb5fa.tar.xz
ipxe-4815188dfc5fe6f5838a04d3a55e6a78d6dfb5fa.zip
[elf] Add execution entry point debug messages for elf/multiboot images
-rw-r--r--src/arch/i386/image/elfboot.c1
-rw-r--r--src/arch/i386/image/multiboot.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/arch/i386/image/elfboot.c b/src/arch/i386/image/elfboot.c
index 60c54992..c8daf72b 100644
--- a/src/arch/i386/image/elfboot.c
+++ b/src/arch/i386/image/elfboot.c
@@ -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",
diff --git a/src/arch/i386/image/multiboot.c b/src/arch/i386/image/multiboot.c
index d7c2b8da..3aa52e43 100644
--- a/src/arch/i386/image/multiboot.c
+++ b/src/arch/i386/image/multiboot.c
@@ -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 ) ),