Changeset 474 for trunk


Ignore:
Timestamp:
Aug 21, 2018, 9:50:01 PM (6 years ago)
Author:
viala@…
Message:

[boot] Add void type to function prototypes with no parameter

Location:
trunk/boot/tsar_mips32
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/boot/tsar_mips32/boot.c

    r457 r474  
    116116// address used by the WTI to activate remote CP0s
    117117
    118 extern void                     boot_entry();    // boot_loader entry point
     118extern void                     boot_entry( void );    // boot_loader entry point
    119119
    120120/*********************************************************************************
     
    145145 * This function loads the arch_info.bin file into the boot cluster memory.
    146146 ***********************************************************************************/
    147 static void boot_archinfo_load()
     147static void boot_archinfo_load( void )
    148148{
    149149    archinfo_header_t* header = (archinfo_header_t*)ARCHINFO_BASE; 
     
    179179 * It set the global variables defining the kernel layout.
    180180 *************************************************************************************/
    181 static void boot_kernel_load()
     181static void boot_kernel_load( void )
    182182{
    183183    Elf32_Ehdr * elf_header;      // pointer on kernel.elf header. 
  • trunk/boot/tsar_mips32/boot_bdv_driver.c

    r439 r474  
    6666
    6767///////////////////
    68 int boot_bdv_init()
     68int boot_bdv_init( void )
    6969{
    7070    // Check block size
  • trunk/boot/tsar_mips32/boot_bdv_driver.h

    r457 r474  
    7474 * @ returns 0 on success, -1 on error.                                     *
    7575 ****************************************************************************/
    76 int boot_bdv_init();
     76int boot_bdv_init( void );
    7777
    7878/****************************************************************************
  • trunk/boot/tsar_mips32/boot_fat32.c

    r473 r474  
    145145 * @ returns 0 on success, -1 on error.                                     *
    146146 ****************************************************************************/
    147 static int set_fsi()
     147static int set_fsi( void )
    148148{
    149149#if DEBUG_BOOT_FAT32   
     
    211211#if DEBUG_BOOT_FAT32   
    212212
    213 static void fat32_desc_display()
     213static void fat32_desc_display( void )
    214214{
    215215    boot_printf("\n############### FAT32 DESCRIPTOR ####################"
     
    774774
    775775/////////////////////
    776 int boot_fat32_init()
     776int boot_fat32_init( void )
    777777{
    778778    // FAT32 initialization should be done only once
  • trunk/boot/tsar_mips32/boot_fat32.h

    r457 r474  
    349349 * @ returns 0 on success, -1 on error.                                     *
    350350 ****************************************************************************/
    351 int boot_fat32_init();
     351int boot_fat32_init( void );
    352352
    353353/****************************************************************************
  • trunk/boot/tsar_mips32/boot_hba_driver.c

    r439 r474  
    8181 * @ returns command index (0 to 31) / returns -1 if not found              *
    8282 ****************************************************************************/
    83 static int boot_hba_cmd_alloc()
     83static int boot_hba_cmd_alloc( void )
    8484{
    8585    uint32_t i;
     
    129129
    130130///////////////////
    131 int boot_hba_init()
     131int boot_hba_init( void )
    132132{
    133133    uint64_t cmd_table_addr;  // Command Table physical base address
  • trunk/boot/tsar_mips32/boot_hba_driver.h

    r457 r474  
    119119 * @ returns 0 on success, -1 on error.                                     *
    120120 ****************************************************************************/
    121 int boot_hba_init();
     121int boot_hba_init( void );
    122122
    123123/****************************************************************************
  • trunk/boot/tsar_mips32/boot_utils.c

    r457 r474  
    504504
    505505////////////////
    506 void boot_exit()
     506void boot_exit( void )
    507507{
    508508    boot_printf("\n[BOOT PANIC] core %x suicide at cycle %d...\n",
     
    514514
    515515////////////////////////////
    516 uint32_t boot_get_proctime()
     516uint32_t boot_get_proctime( void )
    517517{
    518518    uint32_t res;       /* Value stored in the CP0_COUNT register.      */
     
    526526
    527527//////////////////////////
    528 uint32_t boot_get_procid()
     528uint32_t boot_get_procid( void )
    529529{
    530530    uint32_t res;       /* Value stored in the CP0_PROCID register.     */
  • trunk/boot/tsar_mips32/boot_utils.h

    r457 r474  
    210210 * boot code detects an error.
    211211 ****************************************************************************/
    212 void boot_exit() __attribute__((noreturn));
     212void boot_exit( void ) __attribute__((noreturn));
    213213
    214214/****************************************************************************
     
    217217 * @ returns the processor cycle count.
    218218 ****************************************************************************/
    219 uint32_t boot_get_proctime();
     219uint32_t boot_get_proctime( void );
    220220
    221221/****************************************************************************
     
    224224 * @ returns the processor gid
    225225 ****************************************************************************/
    226 uint32_t boot_get_procid();
     226uint32_t boot_get_procid( void );
    227227
    228228/****************************************************************************
Note: See TracChangeset for help on using the changeset viewer.