Changeset 3d99c17 in rtems for c/src/lib/libbsp/sh
- Timestamp:
- 08/25/14 21:53:13 (10 years ago)
- Branches:
- 4.11, 5, master
- Children:
- 8f1bdcb9
- Parents:
- bf1f8764
- git-author:
- Joel Sherrill <joel.sherrill@…> (08/25/14 21:53:13)
- git-committer:
- Joel Sherrill <joel.sherrill@…> (08/25/14 22:00:49)
- Location:
- c/src/lib/libbsp/sh/gensh4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libbsp/sh/gensh4/configure.ac
rbf1f8764 r3d99c17 24 24 # This switch selects whether 'early_hw_init()' is called from 25 25 # 'start.S'; 'bsp_hw_init()' is always called from 'bspstart.c' 26 # 27 START_HW_INIT=${START_HW_INIT-1} 28 AC_DEFINE_UNQUOTED( 29 [START_HW_INIT], 30 [$START_HW_INIT], 31 [Whether to call early_hw_init from start.S]) 26 RTEMS_BSPOPTS_SET([START_HW_INIT],[*],[0]) 27 RTEMS_BSPOPTS_HELP([START_HW_INIT], 28 [Whether to call early_hw_init from start.S]) 29 30 RTEMS_BSPOPTS_SET([COPY_DATA_FROM_ROM],[*],[0]) 31 RTEMS_BSPOPTS_HELP([COPY_DATA_FROM_ROM], 32 [Whether to copy data from ROM to RAM in start.S]) 32 33 33 34 RTEMS_BSP_CLEANUP_OPTIONS(0, 0) -
c/src/lib/libbsp/sh/gensh4/start/start.S
rbf1f8764 r3d99c17 81 81 nop 82 82 83 #if defined(START_HW_INIT)/* from $RTEMS_BSP.cfg */83 #if START_HW_INIT /* from $RTEMS_BSP.cfg */ 84 84 ! Initialize minimal hardware 85 85 ! to run hw_init we need to calculate its address 86 ! as it is before data cop ing86 ! as it is before data copying 87 87 mov.l hw_init_k, r0 88 88 mov.l copy_start_k, r1 … … 103 103 hw_init_end: 104 104 105 #if COPY_DATA_FROM_ROM 105 106 ! copy data from rom to ram 106 107 mov.l copy_start_k, r0 … … 124 125 125 126 end_of_copy_data_cycle: 127 #endif 126 128 ! go to 0x8....... adresses 127 129 mov.l real_address_k, r0 … … 194 196 195 197 .align 2 198 #if START_HW_INIT 196 199 copy_start_k: 197 200 .long copy_start 198 201 copy_end_k: 199 202 .long copy_end 203 #endif 204 #if COPY_DATA_FROM_ROM 200 205 copy_start_in_rom_k: 201 206 .long copy_start_in_rom 207 #endif 202 208 203 209 real_address_k: … … 220 226 .long SYM(_exit) 221 227 222 #if defSTART_HW_INIT /* from $RTEMS_BSP.cfg */228 #if START_HW_INIT /* from $RTEMS_BSP.cfg */ 223 229 hw_init_k: 224 230 .long SYM(early_hw_init)
Note: See TracChangeset
for help on using the changeset viewer.