2
0
mirror of https://github.com/xcat2/xNBA.git synced 2024-11-29 12:49:49 +00:00

[elf] Add execution entry point debug messages for elf/multiboot images

This commit is contained in:
Michael Brown 2008-08-22 02:12:44 +01:00
parent 0ffc3f6285
commit 4815188dfc
2 changed files with 3 additions and 0 deletions

View 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",

View 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 ) ),