Changeset fb0584f in rtems


Ignore:
Timestamp:
May 3, 2013, 8:39:26 AM (8 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
962e0fac
Parents:
2bbea4dd
git-author:
Sebastian Huber <sebastian.huber@…> (05/03/13 08:39:26)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/03/13 15:30:54)
Message:

bsps/arm: Move implementation to inline functions

Location:
c/src/lib/libbsp/arm
Files:
1 deleted
7 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/lm3s69xx/Makefile.am

    r2bbea4dd rfb0584f  
    7474
    7575# Startup
    76 libbsp_a_SOURCES += ../shared/startup/bsp-start-copy-sections.c
    7776libbsp_a_SOURCES += ../shared/startup/bsp-start-memcpy.S
    7877libbsp_a_SOURCES += startup/bspstart.c
  • c/src/lib/libbsp/arm/lm3s69xx/startup/bspstarthook.c

    r2bbea4dd rfb0584f  
    2424{
    2525  bsp_start_copy_sections();
     26  bsp_start_clear_bss();
    2627
    2728  /* At this point we can use objects outside the .start section */
  • c/src/lib/libbsp/arm/lpc24xx/Makefile.am

    r2bbea4dd rfb0584f  
    102102
    103103# Startup
    104 libbsp_a_SOURCES += ../shared/startup/bsp-start-copy-sections.c
    105104libbsp_a_SOURCES += ../shared/startup/bsp-start-memcpy.S
    106105libbsp_a_SOURCES += startup/bspreset.c
  • c/src/lib/libbsp/arm/lpc24xx/startup/bspstarthooks.c

    r2bbea4dd rfb0584f  
    528528  lpc24xx_stop_usb();
    529529  bsp_start_copy_sections();
     530  bsp_start_clear_bss();
    530531
    531532  /* At this point we can use objects outside the .start section */
  • c/src/lib/libbsp/arm/shared/include/start.h

    r2bbea4dd rfb0584f  
    88
    99/*
    10  * Copyright (c) 2008-2011 embedded brains GmbH.  All rights reserved.
     10 * Copyright (c) 2008-2013 embedded brains GmbH.  All rights reserved.
    1111 *
    1212 *  embedded brains GmbH
     
    2424#define LIBBSP_ARM_SHARED_START_H
    2525
    26 #include <stddef.h>
     26#include <string.h>
     27
     28#include <bsp/linker-symbols.h>
    2729
    2830#ifdef __cplusplus
     
    8284 * @brief Copies all standard sections from the load to the runtime area.
    8385 */
    84 void bsp_start_copy_sections(void);
     86BSP_START_TEXT_SECTION static inline void bsp_start_copy_sections(void)
     87{
     88  /* Copy .text section */
     89  bsp_start_memcpy(
     90    (int *) bsp_section_text_begin,
     91    (const int *) bsp_section_text_load_begin,
     92    (size_t) bsp_section_text_size
     93  );
     94
     95  /* Copy .rodata section */
     96  bsp_start_memcpy(
     97    (int *) bsp_section_rodata_begin,
     98    (const int *) bsp_section_rodata_load_begin,
     99    (size_t) bsp_section_rodata_size
     100  );
     101
     102  /* Copy .data section */
     103  bsp_start_memcpy(
     104    (int *) bsp_section_data_begin,
     105    (const int *) bsp_section_data_load_begin,
     106    (size_t) bsp_section_data_size
     107  );
     108
     109  /* Copy .fast_text section */
     110  bsp_start_memcpy(
     111    (int *) bsp_section_fast_text_begin,
     112    (const int *) bsp_section_fast_text_load_begin,
     113    (size_t) bsp_section_fast_text_size
     114  );
     115
     116  /* Copy .fast_data section */
     117  bsp_start_memcpy(
     118    (int *) bsp_section_fast_data_begin,
     119    (const int *) bsp_section_fast_data_load_begin,
     120    (size_t) bsp_section_fast_data_size
     121  );
     122}
     123
     124BSP_START_TEXT_SECTION static inline void bsp_start_clear_bss(void)
     125{
     126  memset(bsp_section_bss_begin, 0, (size_t) bsp_section_bss_size);
     127}
    85128
    86129/** @} */
  • c/src/lib/libbsp/arm/stm32f4/Makefile.am

    r2bbea4dd rfb0584f  
    7373
    7474# Startup
    75 libbsp_a_SOURCES += ../shared/startup/bsp-start-copy-sections.c
    7675libbsp_a_SOURCES += ../shared/startup/bsp-start-memcpy.S
    7776libbsp_a_SOURCES += startup/bspstart.c
  • c/src/lib/libbsp/arm/stm32f4/startup/bspstarthook.c

    r2bbea4dd rfb0584f  
    2424{
    2525  bsp_start_copy_sections();
     26  bsp_start_clear_bss();
    2627
    2728  /* At this point we can use objects outside the .start section */
Note: See TracChangeset for help on using the changeset viewer.