Skip to content

Commit

Permalink
riscv64: load args to main in _start
Browse files Browse the repository at this point in the history
JIRA: RTOS-559
  • Loading branch information
lukileczo committed Aug 22, 2023
1 parent bea8eb5 commit d1a034b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions arch/riscv64/_start.S
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ _start:
.option norelax
la gp, __global_pointer$
.option pop

ld ra, (sp)
ld a0, 8(sp)
ld a1, 16(sp)
ld a2, 24(sp)
addi sp, sp, 32
j _startc

.size _start, .-_start

0 comments on commit d1a034b

Please sign in to comment.