2014-03-21 Sabrini Ni <sabrinanitw@gmail.com>

* nds32/crt0.S: Set argc=argv=env=0.
        * nds32/crt1.S: Ditto.
This commit is contained in:
Jeff Johnston 2014-03-21 20:22:29 +00:00
parent 7f4230bdc8
commit 5ff6903e69
3 changed files with 18 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2014-03-21 Sabrini Ni <sabrinanitw@gmail.com>
* nds32/crt0.S: Set argc=argv=env=0.
* nds32/crt1.S: Ditto.
2014-03-21 Sabrini Ni <sabrinanitw@gmail.com>
* nds32/Makefile.in: Add syscall_error_handler.o.

View File

@ -94,6 +94,13 @@ _start:
.L_call_main:
/* Prepare argc/argv/env for main function.
Since there is no operating system so far,
we set $r0, $r1, and $r2 to be zero. */
movi $r0, 0
movi $r1, 0
movi $r2, 0
/* Call 'main'. */
la $r15, main
jral $r15

View File

@ -100,6 +100,12 @@ _start:
exit() has been reached. */
la $r0, _fini
jal atexit
/* Prepare argc/argv/env for main function.
Since there is no operating system so far,
we set $r0, $r1, and $r2 to be zero. */
movi $r0, 0
movi $r1, 0
movi $r2, 0
/* Call 'main'. */
la $r15, main
jral $r15