Browse Source

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

tags/v0.9.4
Michael Brown 15 years ago
parent
commit
4815188dfc
2 changed files with 3 additions and 0 deletions
  1. 1
    0
      src/arch/i386/image/elfboot.c
  2. 2
    0
      src/arch/i386/image/multiboot.c

+ 1
- 0
src/arch/i386/image/elfboot.c View File

@@ -49,6 +49,7 @@ static int elfboot_exec ( struct image *image ) {
49 49
 	shutdown ( SHUTDOWN_BOOT );
50 50
 
51 51
 	/* Jump to OS with flat physical addressing */
52
+	DBGC ( image, "ELF %p starting execution at %lx\n", image, entry );
52 53
 	__asm__ __volatile__ ( PHYS_CODE ( "call *%%edi\n\t" )
53 54
 			       : : "D" ( entry )
54 55
 			       : "eax", "ebx", "ecx", "edx", "esi", "ebp",

+ 2
- 0
src/arch/i386/image/multiboot.c View File

@@ -280,6 +280,8 @@ static int multiboot_exec ( struct image *image ) {
280 280
 	shutdown ( SHUTDOWN_BOOT );
281 281
 
282 282
 	/* Jump to OS with flat physical addressing */
283
+	DBGC ( image, "MULTIBOOT %p starting execution at %lx\n",
284
+	       image, entry );
283 285
 	__asm__ __volatile__ ( PHYS_CODE ( "call *%%edi\n\t" )
284 286
 			       : : "a" ( MULTIBOOT_BOOTLOADER_MAGIC ),
285 287
 			           "b" ( virt_to_phys ( &mbinfo ) ),

Loading…
Cancel
Save