diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2014-03-21 20:22:29 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2014-03-21 20:22:29 +0000 |
commit | 5ff6903e6957efc69f6a5603fa789541bbad37a5 (patch) | |
tree | 8aa18d8ec0618fe1c471f47a9d2270003087082e /libgloss/nds32/crt1.S | |
parent | 7f4230bdc8cd47571764354da759866cc89b9037 (diff) | |
download | newlib-5ff6903e6957efc69f6a5603fa789541bbad37a5.zip newlib-5ff6903e6957efc69f6a5603fa789541bbad37a5.tar.gz newlib-5ff6903e6957efc69f6a5603fa789541bbad37a5.tar.bz2 |
2014-03-21 Sabrini Ni <sabrinanitw@gmail.com>
* nds32/crt0.S: Set argc=argv=env=0.
* nds32/crt1.S: Ditto.
Diffstat (limited to 'libgloss/nds32/crt1.S')
-rw-r--r-- | libgloss/nds32/crt1.S | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libgloss/nds32/crt1.S b/libgloss/nds32/crt1.S index 26aef5b..60c18c3 100644 --- a/libgloss/nds32/crt1.S +++ b/libgloss/nds32/crt1.S @@ -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 |