Changeset 699c2be in rtems


Ignore:
Timestamp:
Aug 19, 2008, 12:38:41 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
a9c2508
Parents:
54c7a7f
Message:

2008-08-19 Sebastian Huber <sebastian.huber@…>

  • include/bsp.h, network/network.c, spi/spi_init.c, startup/cpuinit.c, startup/uboot_support.c: Fixed warnings.
Location:
c/src/lib/libbsp/powerpc/gen83xx
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/gen83xx/ChangeLog

    r54c7a7f r699c2be  
     12008-08-19      Sebastian Huber <sebastian.huber@embedded-brains.de>
     2
     3        * include/bsp.h, network/network.c, spi/spi_init.c, startup/cpuinit.c,
     4        startup/uboot_support.c: Fixed warnings.
     5
    162008-08-18      Sebastian Huber <sebastian.huber@embedded-brains.de>
    27
  • c/src/lib/libbsp/powerpc/gen83xx/include/bsp.h

    r54c7a7f r699c2be  
    216216void mpc83xx_zero_4( void *dest, size_t n);
    217217
     218void cpu_init( void);
     219
    218220#ifdef __cplusplus
    219221}
  • c/src/lib/libbsp/powerpc/gen83xx/network/network.c

    r54c7a7f r699c2be  
    157157   * set interrupt number for given interface
    158158   */
    159   config->irno = ((unitNumber == 1)
    160                   ? BSP_IPIC_IRQ_TSEC1_TX
    161                   : BSP_IPIC_IRQ_TSEC2_TX);
     159  config->irno = (unsigned) (
     160      unitNumber == 1
     161      ? BSP_IPIC_IRQ_TSEC1_TX
     162      : BSP_IPIC_IRQ_TSEC2_TX
     163    );
    162164  /*
    163165   * call attach function of board independent driver
  • c/src/lib/libbsp/powerpc/gen83xx/spi/spi_init.c

    r54c7a7f r699c2be  
    297297{
    298298  int ret_code;
    299   int spi_busno;
     299  unsigned spi_busno;
    300300
    301301  /*
     
    370370    return -ret_code;
    371371  }
    372   spi_busno = ret_code;
     372  spi_busno = (unsigned) ret_code;
    373373
    374374#if defined( MPC8313ERDB)
  • c/src/lib/libbsp/powerpc/gen83xx/startup/cpuinit.c

    r54c7a7f r699c2be  
    9292#endif
    9393
    94 void calc_dbat_regvals(BAT *bat_ptr,
     94static void calc_dbat_regvals(BAT *bat_ptr,
    9595                       uint32_t base_addr,
    9696                       uint32_t size,
     
    108108   */
    109109  end_addr = base_addr+size-1;
    110   block_mask = ~0;
     110  block_mask = 0xffffffff;
    111111  while ((end_addr & block_mask) != (base_addr & block_mask)) {
    112112    block_mask <<= 1;
     
    126126}
    127127
    128 void clear_mmu_regs(void)
     128static void clear_mmu_regs(void)
    129129{
    130130  uint32_t i;
  • c/src/lib/libbsp/powerpc/gen83xx/startup/uboot_support.c

    r54c7a7f r699c2be  
    2020/* XXX TODO fill in with real information */
    2121/* Base address of U-Boot environment variables */
    22 const uint8_t *uboot_environment      = (const char *)0x00000000;
     22const uint8_t *uboot_environment      = (const uint8_t *) 0x00000000;
    2323
    2424/* Length of area reserved for U-Boot environment variables */
    25 const size_t  *uboot_environment_size = 0x10000;
     25const size_t  *uboot_environment_size = (const size_t *) 0x00010000;
    2626#endif
Note: See TracChangeset for help on using the changeset viewer.