Ignore:
Timestamp:
Apr 1, 2015, 3:42:03 PM (10 years ago)
Author:
alain
Message:

Introducing a new IOC driver supporting the VciMultiAhci? disk controller (in polling mode only).
Extending the MMC driver to support the SYNC command requested by the AHCI protocol on the tsar_generic_iob platform.

File:
1 edited

Legend:

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

    r930 r962  
    178178        (ehdr->e_ident[EI_MAG3] != ELFMAG3))
    179179    {
    180         reset_puts("[RESET ERROR] Unrecognized file format (not an ELF format)\n");
     180        reset_puts("\n[RESET ERROR] Unrecognized file format (not an ELF format)\n");
    181181        reset_exit();
    182182    }
     
    220220}
    221221
     222/**
     223 * \param buffer : Pointer to the char buffer
     224 *
     225 * \brief Print a 512 bytes buffer
     226 */
     227#if (RESET_DEBUG == 1 )
     228void reset_display_block( char* buffer )
     229{
     230    unsigned int line;
     231    unsigned int word;
     232
     233    reset_puts("***********************************************************************\n");
     234    for ( line = 0 ; line < 32 ; line++ )
     235    {
     236        // display line index
     237        reset_putx( line );
     238        reset_puts(" : ");
     239
     240        // display 8*4 bytes hexa
     241        for ( word=0 ; word<4 ; word++ )
     242        {
     243            unsigned int byte  = (line<<5) + (word<<2);
     244            unsigned int hexa  = (buffer[byte  ]<<24) |
     245                                 (buffer[byte+1]<<16) |
     246                                 (buffer[byte+2]<< 8) |
     247                                 (buffer[byte+3]);
     248            reset_putx( hexa );
     249            reset_puts(" | ");
     250        }
     251        reset_puts("\n");
     252    }
     253    reset_puts("***********************************************************************\n");
     254}   
     255#endif
     256
    222257/*
    223258 * vim: tabstop=4 : softtabstop=4 : shiftwidth=4 : expandtab
Note: See TracChangeset for help on using the changeset viewer.