sol2-c1.asm (52284) | sol2-c1.asm (122180) |
---|---|
1! crt1.s for sparc & sparcv9 (SunOS 5) 2 3! Copyright (C) 1992 Free Software Foundation, Inc. 4! Written By David Vinayak Henkel-Wallace, June 1992 5! 6! This file is free software; you can redistribute it and/or modify it 7! under the terms of the GNU General Public License as published by the 8! Free Software Foundation; either version 2, or (at your option) any --- 78 unchanged lines hidden (view full) --- 87 nop 88 call _init, 0 89 nop 90 91 ! We ignore the auxiliary vector; there is no defined way to 92 ! access those data anyway. Instead, go straight to main: 93 mov %l0, %o0 ! argc 94 mov %l1, %o1 ! argv | 1! crt1.s for sparc & sparcv9 (SunOS 5) 2 3! Copyright (C) 1992 Free Software Foundation, Inc. 4! Written By David Vinayak Henkel-Wallace, June 1992 5! 6! This file is free software; you can redistribute it and/or modify it 7! under the terms of the GNU General Public License as published by the 8! Free Software Foundation; either version 2, or (at your option) any --- 78 unchanged lines hidden (view full) --- 87 nop 88 call _init, 0 89 nop 90 91 ! We ignore the auxiliary vector; there is no defined way to 92 ! access those data anyway. Instead, go straight to main: 93 mov %l0, %o0 ! argc 94 mov %l1, %o1 ! argv |
95#ifdef GCRT1 96 setn(___Argv, %o4, %o3) 97 stn %o1, [%o3] ! *___Argv 98#endif |
|
95 ! Skip argc words past argv, to env: 96 sll %l0, CPTRSHIFT, %o2 97 add %o2, CPTRSIZE, %o2 98 add %l1, %o2, %o2 ! env 99 setn(_environ, %o4, %o3) 100 stn %o2, [%o3] ! *_environ 101 call main, 4 102 nop 103 call exit, 0 104 nop 105 call _exit, 0 106 nop 107 ! We should never get here. 108 109 .type _start,#function 110 .size _start,.-_start | 99 ! Skip argc words past argv, to env: 100 sll %l0, CPTRSHIFT, %o2 101 add %o2, CPTRSIZE, %o2 102 add %l1, %o2, %o2 ! env 103 setn(_environ, %o4, %o3) 104 stn %o2, [%o3] ! *_environ 105 call main, 4 106 nop 107 call exit, 0 108 nop 109 call _exit, 0 110 nop 111 ! We should never get here. 112 113 .type _start,#function 114 .size _start,.-_start |