Changeset bca36d9 in rtems
- Timestamp:
- 07/06/18 09:07:20 (5 years ago)
- Branches:
- 5, master
- Children:
- 31f90a2
- Parents:
- dd32e2b2
- git-author:
- Sebastian Huber <sebastian.huber@…> (07/06/18 09:07:20)
- git-committer:
- Sebastian Huber <sebastian.huber@…> (07/06/18 11:46:46)
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
bsps/riscv/riscv/start/start.S
rdd32e2b2 rbca36d9 51 51 .option push 52 52 .option norelax 53 lagp, __global_pointer$53 LADDR gp, __global_pointer$ 54 54 .option pop 55 55 56 56 #ifdef RTEMS_SMP 57 57 csrr s0, mhartid 58 lat0, _Per_CPU_Information58 LADDR t0, _Per_CPU_Information 59 59 slli t1, s0, PER_CPU_CONTROL_SIZE_LOG2 60 60 add t0, t0, t1 … … 64 64 65 65 /* load stack and frame pointers */ 66 lasp, _Configuration_Interrupt_stack_area_end66 LADDR sp, _Configuration_Interrupt_stack_area_end 67 67 68 68 #ifdef BSP_START_COPY_FDT_FROM_U_BOOT … … 71 71 #endif 72 72 73 lat0, ISR_Handler73 LADDR t0, ISR_Handler 74 74 csrw mtvec, t0 75 75 76 76 /* Clear .bss */ 77 laa0, bsp_section_bss_begin77 LADDR a0, bsp_section_bss_begin 78 78 li a1, 0 79 laa2, bsp_section_bss_size79 LADDR a2, bsp_section_bss_size 80 80 call memset 81 81 82 82 #ifdef RTEMS_SMP 83 83 /* Give go to secondary processors */ 84 lat0, .Lsecondary_processor_go84 LADDR t0, .Lsecondary_processor_go 85 85 fence iorw,ow 86 86 amoswap.w zero, zero, 0(t0) … … 96 96 /* Wait for go issued by the boot processor (mhartid == 0) */ 97 97 .Lwait_for_go: 98 lat0, .Lsecondary_processor_go98 LADDR t0, .Lsecondary_processor_go 99 99 .Lwait_for_go_again: 100 100 lw t1, 0(t0) -
cpukit/score/cpu/riscv/include/rtems/asm.h
rdd32e2b2 rbca36d9 132 132 #endif /* __riscv_xlen */ 133 133 134 #ifdef __riscv_cmodel_medany 135 136 #define LADDR lla 137 138 #else /* !__riscv_cmodel_medany */ 139 140 #define LADDR la 141 142 #endif /* __riscv_cmodel_medany */ 143 134 144 #if __riscv_flen == 32 135 145 … … 168 178 csrr \REG, mscratch 169 179 #else 170 la\REG, _Per_CPU_Information180 LADDR \REG, _Per_CPU_Information 171 181 #endif 172 182 .endm -
cpukit/score/cpu/riscv/riscv-exception-handler.S
rdd32e2b2 rbca36d9 129 129 130 130 /* calculate the offset */ 131 lat5, bsp_start_vector_table_begin131 LADDR t5, bsp_start_vector_table_begin 132 132 #if __riscv_xlen == 32 133 133 slli t6, a0, 2
Note: See TracChangeset
for help on using the changeset viewer.