@@ -82,13 +82,6 @@ _abs_start:
82
82
1:" , // only valid harts reach this point
83
83
) ;
84
84
85
- // ZERO OUT GENERAL-PURPOSE REGISTERS
86
- riscv_rt_macros:: loop_global_asm!( " li x{}, 0" , 1 , 10 ) ;
87
- // a0..a2 (x10..x12) skipped
88
- riscv_rt_macros:: loop_global_asm!( " li x{}, 0" , 13 , 16 ) ;
89
- #[ cfg( riscvi) ]
90
- riscv_rt_macros:: loop_global_asm!( " li x{}, 0" , 16 , 32 ) ;
91
-
92
85
// INITIALIZE GLOBAL POINTER, STACK POINTER, AND FRAME POINTER
93
86
cfg_global_asm ! (
94
87
".option push
@@ -193,13 +186,6 @@ cfg_global_asm!(
193
186
csrrs x0, mstatus, t2" ,
194
187
"fscsr x0" ,
195
188
) ;
196
- // ZERO OUT FLOATING POINT REGISTERS
197
- #[ cfg( all( target_arch = "riscv32" , riscvd) ) ]
198
- riscv_rt_macros:: loop_global_asm!( " fcvt.d.w f{}, x0" , 32 ) ;
199
- #[ cfg( all( target_arch = "riscv64" , riscvd) ) ]
200
- riscv_rt_macros:: loop_global_asm!( " fmv.d.x f{}, x0" , 32 ) ;
201
- #[ cfg( all( riscvf, not( riscvd) ) ) ]
202
- riscv_rt_macros:: loop_global_asm!( " fmv.w.x f{}, x0" , 32 ) ;
203
189
204
190
// SET UP INTERRUPTS, RESTORE a0..a2, AND JUMP TO MAIN RUST FUNCTION
205
191
cfg_global_asm ! (
0 commit comments