diff options
Diffstat (limited to 'riscv_new/rtl/linux/riscv64/prt0.as')
-rw-r--r-- | riscv_new/rtl/linux/riscv64/prt0.as | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/riscv_new/rtl/linux/riscv64/prt0.as b/riscv_new/rtl/linux/riscv64/prt0.as index deaca13a29..e58feb3469 100644 --- a/riscv_new/rtl/linux/riscv64/prt0.as +++ b/riscv_new/rtl/linux/riscv64/prt0.as @@ -34,7 +34,7 @@ _start: /* Save argc, argv, envp, and initial stack pointer */ 1:auipc x8,%pcrel_hi(operatingsystem_parameter_argc) - sd x5,%pcrel_lo(1b)(x8) + sw x5,%pcrel_lo(1b)(x8) 1:auipc x8,%pcrel_hi(operatingsystem_parameter_argv) sd x6,%pcrel_lo(1b)(x8) 1:auipc x8,%pcrel_hi(operatingsystem_parameter_envp) @@ -79,7 +79,7 @@ __data_start: .comm __stkptr,8 .comm operatingsystem_parameter_envp,8 - .comm operatingsystem_parameter_argc,8 + .comm operatingsystem_parameter_argc,4 .comm operatingsystem_parameter_argv,8 .section .note.GNU-stack,"",%progbits |