浏览代码

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

tags/v0.9.4
Michael Brown 17 年前
父节点
当前提交
4815188dfc
共有 2 个文件被更改,包括 3 次插入0 次删除
  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 查看文件

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 查看文件

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

正在加载...
取消
保存