* nds32/crt0.S: Set argc=argv=env=0.
* nds32/crt1.S: Ditto.
+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.
.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
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