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