Rev 1113 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 1113 | Rev 1123 | ||
|---|---|---|---|
| Line 25... | Line 25... | ||
| 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 | # |
27 | # |
| 28 | 28 | ||
| 29 | .text |
29 | .text |
| 30 | 30 | ||
| 31 | .set noat |
31 | .set noat |
| 32 | .set noreorder |
32 | .set noreorder |
| 33 | .set nomacro |
33 | .option pic2 |
| 34 | 34 | ||
| 35 | .globl __thread_entry |
35 | .globl __thread_entry |
| 36 | 36 | ||
| 37 | ## User-space thread entry point for all but the first threads. |
37 | ## User-space thread entry point for all but the first threads. |
| 38 | # |
38 | # |
| 39 | # |
39 | # |
| 40 | .ent __thread_entry |
40 | .ent __thread_entry |
| 41 | __thread_entry: |
41 | __thread_entry: |
| - | 42 | .frame $sp, 32, $31 |
|
| 42 | lui $28, _gp |
43 | .cpload $25 |
| 43 | 44 | ||
| 44 | # |
45 | # |
| 45 | # v0 contains address of uarg. |
46 | # v0 contains address of uarg. |
| 46 | # |
47 | # |
| 47 | add $4, $2, 0 |
48 | add $4, $2, 0 |
| 48 | # Mips o32 may store its arguments on stack, make space |
49 | # Mips o32 may store its arguments on stack, make space |
| 49 | addiu $sp, -16 |
50 | addiu $sp, -32 |
| - | 51 | .cprestore 16 |
|
| 50 | 52 | ||
| 51 | j __thread_main |
53 | jal __thread_main |
| 52 | nop |
54 | nop |
| 53 | 55 | ||
| 54 | # |
56 | # |
| 55 | # Not reached. |
57 | # Not reached. |
| 56 | # |
58 | # |