Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[elf] Add execution entry point debug messages for elf/multiboot images
  • Loading branch information
Michael Brown committed Aug 22, 2008
1 parent 0ffc3f6 commit 4815188
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/arch/i386/image/elfboot.c
Expand Up @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions src/arch/i386/image/multiboot.c
Expand Up @@ -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 ) ),
Expand Down

0 comments on commit 4815188

Please sign in to comment.