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:
parent
7f4230bdc8
commit
5ff6903e69
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue