Browse Source

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

tags/v0.9.4
Michael Brown 16 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
 	shutdown ( SHUTDOWN_BOOT );
49
 	shutdown ( SHUTDOWN_BOOT );
50
 
50
 
51
 	/* Jump to OS with flat physical addressing */
51
 	/* Jump to OS with flat physical addressing */
52
+	DBGC ( image, "ELF %p starting execution at %lx\n", image, entry );
52
 	__asm__ __volatile__ ( PHYS_CODE ( "call *%%edi\n\t" )
53
 	__asm__ __volatile__ ( PHYS_CODE ( "call *%%edi\n\t" )
53
 			       : : "D" ( entry )
54
 			       : : "D" ( entry )
54
 			       : "eax", "ebx", "ecx", "edx", "esi", "ebp",
55
 			       : "eax", "ebx", "ecx", "edx", "esi", "ebp",

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

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

Loading…
Cancel
Save