]> sourceware.org Git - newlib-cygwin.git/commitdiff
2014-03-21 Sabrini Ni <sabrinanitw@gmail.com>
authorJeff Johnston <jjohnstn@redhat.com>
Fri, 21 Mar 2014 20:22:29 +0000 (20:22 +0000)
committerJeff Johnston <jjohnstn@redhat.com>
Fri, 21 Mar 2014 20:22:29 +0000 (20:22 +0000)
        * nds32/crt0.S: Set argc=argv=env=0.
        * nds32/crt1.S: Ditto.

libgloss/ChangeLog
libgloss/nds32/crt0.S
libgloss/nds32/crt1.S

index 4cd4168931d875e9ce91b8d5ccf9232b14aac476..42c1baca221f7806c98e78aeffec2ef492544b17 100644 (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.
index d12be761f17a338707006ff8ecae886ddf196c59..97c02c5c4309a3f947d17425d19196faeec8e7e3 100644 (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
 
index 26aef5b510e7517bd99c45fa0aa38e2bebc19137..60c18c3187f03d06d0bfd6d4fd31be82a92a604d 100644 (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
This page took 0.037494 seconds and 5 git commands to generate.