diff options
Diffstat (limited to 'scripts/romload/start.S')
-rw-r--r-- | scripts/romload/start.S | 35 |
1 files changed, 1 insertions, 34 deletions
diff --git a/scripts/romload/start.S b/scripts/romload/start.S index 3561384..be59808 100644 --- a/scripts/romload/start.S +++ b/scripts/romload/start.S @@ -1,8 +1,6 @@ .section .text .global _start .global _pvstart -.global _data -.global _data_lma _pvstart: /* zero-initialize all registers */ @@ -42,10 +40,7 @@ addi x31, zero, 0 lui sp, %hi(4*1024*1024) addi sp, sp, %lo(4*1024*1024) -/* -lui sp, %hi(0x100000) -addi sp, sp, %lo(0x100000) -*/ + /* push zeros on the stack for argc and argv */ /* (stack is aligned to 16 bytes in riscv calling convention) */ addi sp,sp,-16 @@ -54,32 +49,4 @@ sw zero,4(sp) sw zero,8(sp) sw zero,12(sp) -/* - // Load data section - la a0, _data_lma - la a1, _data - la a2, _edata - bgeu a1, a2, 2f -1: - lw t0, (a0) - sw t0, (a1) - addi a0, a0, 4 - addi a1, a1, 4 - bltu a1, a2, 1b -2: - - // Clear bss section - la a0, _bss_start - la a1, _bss_end - bgeu a0, a1, 2f -1: - sw zero, (a0) - addi a0, a0, 4 - bltu a0, a1, 1b -2: -*/ - -/* jump to libc init */ -/*j _ftext - */ j _start |