Changeset 415 for trunk/softs/tsar_boot/src/boot_elf_loader.c
- Timestamp:
- Jun 18, 2013, 10:25:15 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/softs/tsar_boot/src/boot_elf_loader.c
r412 r415 109 109 if (init_state != init_state_debug) 110 110 { 111 boot_puts(" init_state = ");111 boot_puts("\ninit_state = "); 112 112 boot_puts(init_state_str[init_state]); 113 113 boot_puts("\n"); … … 189 189 { 190 190 #if (BOOT_DEBUG == 1) 191 boot_puts("found a loadable segment: \n");192 boot_puts(" - type : "); boot_putx(elf_pht_ptr[pseg].p_type); boot_puts("\n");193 boot_puts(" - offset : "); boot_putx(elf_pht_ptr[pseg].p_offset); boot_puts("\n");194 boot_puts(" - vaddr : "); boot_putx(elf_pht_ptr[pseg].p_vaddr); boot_puts("\n");195 boot_puts(" - paddr : "); boot_putx(elf_pht_ptr[pseg].p_paddr); boot_puts("\n");196 boot_puts(" - filesz : "); boot_putx(elf_pht_ptr[pseg].p_filesz); boot_puts("\n");197 boot_puts(" - memsz : "); boot_putx(elf_pht_ptr[pseg].p_memsz); boot_puts("\n");198 boot_puts(" - flags : "); boot_putx(elf_pht_ptr[pseg].p_flags); boot_puts("\n");199 boot_puts(" - align : "); boot_putx(elf_pht_ptr[pseg].p_align); boot_puts("\n");191 boot_puts("found a loadable segment:"); 192 boot_puts("\n- type : "); boot_putx(elf_pht_ptr[pseg].p_type); 193 boot_puts("\n- offset : "); boot_putx(elf_pht_ptr[pseg].p_offset); 194 boot_puts("\n- vaddr : "); boot_putx(elf_pht_ptr[pseg].p_vaddr); 195 boot_puts("\n- paddr : "); boot_putx(elf_pht_ptr[pseg].p_paddr); 196 boot_puts("\n- filesz : "); boot_putx(elf_pht_ptr[pseg].p_filesz); 197 boot_puts("\n- memsz : "); boot_putx(elf_pht_ptr[pseg].p_memsz); 198 boot_puts("\n- flags : "); boot_putx(elf_pht_ptr[pseg].p_flags); 199 boot_puts("\n- align : "); boot_putx(elf_pht_ptr[pseg].p_align); 200 200 #endif 201 201 if (elf_pht_ptr[pseg].p_offset < offset) 202 202 { 203 /* case where the segment to load includes the elf and program headers */ 203 /* 204 * Case where the segment to load includes the elf 205 * and program headers 206 * */ 204 207 nb_rest = elf_pht_ptr[pseg].p_filesz - offset; 205 208 init_state = ELF_SEGMENT_STATE; … … 207 210 else 208 211 { 209 /* segment to load is further away in memory */ 212 /* 213 * Segment to load is further away in ELF file 214 * */ 210 215 nb_rest = elf_pht_ptr[pseg].p_offset - offset; 211 216 init_state = ELF_OFFSET_STATE; … … 230 235 231 236 /** 232 * Go to the offset of the first not null program segment in the ELF file 237 * Go to the offset of the first not null program segment in the 238 * ELF file 233 239 */ 234 240 case ELF_OFFSET_STATE:
Note: See TracChangeset
for help on using the changeset viewer.