Просмотр исходного кода

fomu: crt0: minor text refactor

Signed-off-by: Sean Cross <sean@xobs.io>
Sean Cross 6 лет назад
Родитель
Сommit
f087cb1580
1 измененных файлов с 3 добавлено и 11 удалено
  1. 3 11
      hw/bsp/fomu/crt0-vexriscv.S

+ 3 - 11
hw/bsp/fomu/crt0-vexriscv.S

@@ -6,13 +6,6 @@
 
 
 _start:
 _start:
   j crt_init
   j crt_init
-  nop
-  nop
-  nop
-  nop
-  nop
-  nop
-  nop
 
 
 .section .text
 .section .text
 .global  trap_entry
 .global  trap_entry
@@ -53,9 +46,8 @@ trap_entry:
   lw x31,  0*4(sp)
   lw x31,  0*4(sp)
   addi sp,sp,16*4
   addi sp,sp,16*4
   mret
   mret
-  .text
-
 
 
+.text
 crt_init:
 crt_init:
   la sp, _estack - 4
   la sp, _estack - 4
   la a0, trap_entry
   la a0, trap_entry
@@ -87,5 +79,5 @@ bss_done:
   csrw mie,a0
   csrw mie,a0
 
 
   call main
   call main
-infinit_loop:
-  j infinit_loop
+infinite_loop:
+  j infinite_loop