Changeset f2e0f8e in rtems


Ignore:
Timestamp:
Jan 14, 2016, 3:03:51 PM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
438fa8d
Parents:
c354fac
git-author:
Sebastian Huber <sebastian.huber@…> (01/14/16 15:03:51)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/19/16 07:36:21)
Message:

bsp/atsam: New

Close #2529.

Location:
c/src/lib/libbsp/arm
Files:
20 added
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/acinclude.m4

    rc354fac rf2e0f8e  
    55  altera-cyclone-v )
    66    AC_CONFIG_SUBDIRS([altera-cyclone-v]);;
     7  atsam )
     8    AC_CONFIG_SUBDIRS([atsam]);;
    79  beagle )
    810    AC_CONFIG_SUBDIRS([beagle]);;
  • c/src/lib/libbsp/arm/shared/include/start.h

    rc354fac rf2e0f8e  
    122122}
    123123
     124BSP_START_TEXT_SECTION static inline void
     125bsp_start_memcpy_libc(void *dest, const void *src, size_t n)
     126{
     127  if (dest != src) {
     128    memcpy(dest, src, n);
     129  }
     130}
     131
     132/**
     133 * @brief Copies the .data, .fast_text and .fast_data sections from the load to
     134 * the runtime area using the C library memcpy().
     135 *
     136 * Works only in case the .start, .text and .rodata sections reside in one
     137 * memory region.
     138 */
     139BSP_START_TEXT_SECTION static inline void bsp_start_copy_sections_compact(void)
     140{
     141  /* Copy .data section */
     142  bsp_start_memcpy_libc(
     143    bsp_section_data_begin,
     144    bsp_section_data_load_begin,
     145    (size_t) bsp_section_data_size
     146  );
     147
     148  /* Copy .fast_text section */
     149  bsp_start_memcpy_libc(
     150    bsp_section_fast_text_begin,
     151    bsp_section_fast_text_load_begin,
     152    (size_t) bsp_section_fast_text_size
     153  );
     154
     155  /* Copy .fast_data section */
     156  bsp_start_memcpy_libc(
     157    bsp_section_fast_data_begin,
     158    bsp_section_fast_data_load_begin,
     159    (size_t) bsp_section_fast_data_size
     160  );
     161}
     162
    124163BSP_START_TEXT_SECTION static inline void bsp_start_clear_bss(void)
    125164{
Note: See TracChangeset for help on using the changeset viewer.