Changeset c1233a33 in rtems for bsps


Ignore:
Timestamp:
Sep 4, 2018, 1:35:37 PM (12 months ago)
Author:
Joel Sherrill <joel@…>
Branches:
master
Children:
28fb5b71
Parents:
156b77a
git-author:
Joel Sherrill <joel@…> (09/04/18 13:35:37)
git-committer:
Joel Sherrill <joel@…> (10/18/18 17:05:41)
Message:

qemuppc/start/cmain.c: Cast args to memcpy and bzero to fix warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bsps/powerpc/qemuppc/start/cmain.c

    r156b77a rc1233a33  
    1919
    2020static void
    21 __memcpy (unsigned char *d, unsigned char *s, int len)
     21__memcpy (void *dv, void *sv, size_t len)
    2222{
     23  unsigned char *d = (unsigned char *) dv;
     24  unsigned char *s = (unsigned char *) sv;
     25
    2326  while (len--)
    2427    *d++ = *s++;
     
    2629
    2730static void
    28 __bzero (unsigned char *d, int len)
     31__bzero (void *dv, size_t len)
    2932{
     33  unsigned char *d = (unsigned char *) dv;
     34
    3035  while (len--)
    3136    *d++ = 0;
     
    4449   * init variable sections
    4550   */
    46   __memcpy (bsp_section_data_begin, bsp_section_data_load_begin, (int)bsp_section_data_size);
    47   __bzero (bsp_section_bss_begin, (int)bsp_section_bss_size);
    48   __bzero (bsp_section_sbss_begin, (int)bsp_section_sbss_size);
     51  __memcpy(
     52    (char *)bsp_section_data_begin,
     53    (char *) bsp_section_data_load_begin,
     54    (int)bsp_section_data_size
     55   );
     56  __bzero((char *)bsp_section_bss_begin, (int)bsp_section_bss_size);
     57  __bzero((char *)bsp_section_sbss_begin, (int)bsp_section_sbss_size);
    4958  /* printk( "start of BSP\n"); */
    5059  boot_card(0);
Note: See TracChangeset for help on using the changeset viewer.