Rev 1113 | Rev 1123 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 1113 | Rev 1120 | ||
|---|---|---|---|
| Line 29... | Line 29... | ||
| 29 | .text |
29 | .text |
| 30 | 30 | ||
| 31 | .org 0 |
31 | .org 0 |
| 32 | 32 | ||
| 33 | .section .init, "ax" |
33 | .section .init, "ax" |
| 34 | .globl __entry |
34 | .globl __start |
| 35 | 35 | ||
| 36 | ## User-space task entry point |
36 | ## User-space task entry point |
| 37 | # |
37 | # |
| 38 | # |
38 | # |
| 39 | .ent __entry |
39 | .ent __start |
| 40 | __entry: |
40 | __start: |
| 41 | lui $28, _gp |
41 | lui $28, _gp |
| 42 | 42 | ||
| 43 | # Mips o32 may store its arguments on stack, make space, |
43 | # Mips o32 may store its arguments on stack, make space, |
| 44 | # so that it could work with -O0 |
44 | # so that it could work with -O0 |
| 45 | addiu $sp, -16 |
45 | addiu $sp, -16 |
| Line 48... | Line 48... | ||
| 48 | 48 | ||
| 49 | jal main |
49 | jal main |
| 50 | 50 | ||
| 51 | jal __exit |
51 | jal __exit |
| 52 | 52 | ||
| 53 | .end __entry |
53 | .end __start |