Ignore:
Timestamp:
Jun 18, 2013, 10:25:15 AM (11 years ago)
Author:
cfuguet
Message:

Modifications in soft/tsar_boot:

  • Fixing indentation problems in spi.c code
  • Erasing useless print in boot_elf_loader.c
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/softs/tsar_boot/src/boot_elf_loader.c

    r412 r415  
    109109        if (init_state != init_state_debug)
    110110        {
    111             boot_puts("init_state = ");
     111            boot_puts("\ninit_state = ");
    112112            boot_puts(init_state_str[init_state]);
    113113            boot_puts("\n");
     
    189189                        {
    190190#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);
    200200#endif
    201201                            if (elf_pht_ptr[pseg].p_offset < offset)
    202202                            {
    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                                 * */
    204207                                nb_rest = elf_pht_ptr[pseg].p_filesz - offset;
    205208                                init_state = ELF_SEGMENT_STATE;
     
    207210                            else
    208211                            {
    209                                 /* segment to load is further away in memory */
     212                                /*
     213                                 * Segment to load is further away in ELF file
     214                                 * */
    210215                                nb_rest = elf_pht_ptr[pseg].p_offset - offset;
    211216                                init_state = ELF_OFFSET_STATE;
     
    230235
    231236            /**
    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
    233239             */
    234240            case ELF_OFFSET_STATE:
Note: See TracChangeset for help on using the changeset viewer.