Changeset f2e0f8e in rtems
- Timestamp:
- 01/14/16 15:03:51 (7 years ago)
- Branches:
- 5, 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)
- Location:
- c/src/lib/libbsp/arm
- Files:
-
- 20 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libbsp/arm/acinclude.m4
rc354fac rf2e0f8e 5 5 altera-cyclone-v ) 6 6 AC_CONFIG_SUBDIRS([altera-cyclone-v]);; 7 atsam ) 8 AC_CONFIG_SUBDIRS([atsam]);; 7 9 beagle ) 8 10 AC_CONFIG_SUBDIRS([beagle]);; -
c/src/lib/libbsp/arm/shared/include/start.h
rc354fac rf2e0f8e 122 122 } 123 123 124 BSP_START_TEXT_SECTION static inline void 125 bsp_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 */ 139 BSP_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 124 163 BSP_START_TEXT_SECTION static inline void bsp_start_clear_bss(void) 125 164 {
Note: See TracChangeset
for help on using the changeset viewer.