Changeset fb0584f in rtems
- Timestamp:
- 05/03/13 08:39:26 (11 years ago)
- 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)
- 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 74 74 75 75 # Startup 76 libbsp_a_SOURCES += ../shared/startup/bsp-start-copy-sections.c77 76 libbsp_a_SOURCES += ../shared/startup/bsp-start-memcpy.S 78 77 libbsp_a_SOURCES += startup/bspstart.c -
c/src/lib/libbsp/arm/lm3s69xx/startup/bspstarthook.c
r2bbea4dd rfb0584f 24 24 { 25 25 bsp_start_copy_sections(); 26 bsp_start_clear_bss(); 26 27 27 28 /* At this point we can use objects outside the .start section */ -
c/src/lib/libbsp/arm/lpc24xx/Makefile.am
r2bbea4dd rfb0584f 102 102 103 103 # Startup 104 libbsp_a_SOURCES += ../shared/startup/bsp-start-copy-sections.c105 104 libbsp_a_SOURCES += ../shared/startup/bsp-start-memcpy.S 106 105 libbsp_a_SOURCES += startup/bspreset.c -
c/src/lib/libbsp/arm/lpc24xx/startup/bspstarthooks.c
r2bbea4dd rfb0584f 528 528 lpc24xx_stop_usb(); 529 529 bsp_start_copy_sections(); 530 bsp_start_clear_bss(); 530 531 531 532 /* At this point we can use objects outside the .start section */ -
c/src/lib/libbsp/arm/shared/include/start.h
r2bbea4dd rfb0584f 8 8 9 9 /* 10 * Copyright (c) 2008-201 1embedded brains GmbH. All rights reserved.10 * Copyright (c) 2008-2013 embedded brains GmbH. All rights reserved. 11 11 * 12 12 * embedded brains GmbH … … 24 24 #define LIBBSP_ARM_SHARED_START_H 25 25 26 #include <stddef.h> 26 #include <string.h> 27 28 #include <bsp/linker-symbols.h> 27 29 28 30 #ifdef __cplusplus … … 82 84 * @brief Copies all standard sections from the load to the runtime area. 83 85 */ 84 void bsp_start_copy_sections(void); 86 BSP_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 124 BSP_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 } 85 128 86 129 /** @} */ -
c/src/lib/libbsp/arm/stm32f4/Makefile.am
r2bbea4dd rfb0584f 73 73 74 74 # Startup 75 libbsp_a_SOURCES += ../shared/startup/bsp-start-copy-sections.c76 75 libbsp_a_SOURCES += ../shared/startup/bsp-start-memcpy.S 77 76 libbsp_a_SOURCES += startup/bspstart.c -
c/src/lib/libbsp/arm/stm32f4/startup/bspstarthook.c
r2bbea4dd rfb0584f 24 24 { 25 25 bsp_start_copy_sections(); 26 bsp_start_clear_bss(); 26 27 27 28 /* At this point we can use objects outside the .start section */
Note: See TracChangeset
for help on using the changeset viewer.