@@ -82,13 +82,6 @@ _abs_start:
82821:" , // only valid harts reach this point
8383) ;
8484
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-
9285// INITIALIZE GLOBAL POINTER, STACK POINTER, AND FRAME POINTER
9386cfg_global_asm ! (
9487 ".option push
@@ -193,13 +186,6 @@ cfg_global_asm!(
193186 csrrs x0, mstatus, t2" ,
194187 "fscsr x0" ,
195188) ;
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 ) ;
203189
204190// SET UP INTERRUPTS, RESTORE a0..a2, AND JUMP TO MAIN RUST FUNCTION
205191cfg_global_asm ! (
0 commit comments