Rev 3150 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3150 | Rev 3168 | ||
---|---|---|---|
Line 32... | Line 32... | ||
32 | 32 | ||
33 | .globl __entry |
33 | .globl __entry |
34 | 34 | ||
35 | ## User-space task entry point |
35 | ## User-space task entry point |
36 | # |
36 | # |
- | 37 | # %o0 contains uarg |
|
- | 38 | # %o1 contains pcb_ptr |
|
37 | # |
39 | # |
38 | __entry: |
40 | __entry: |
- | 41 | # Pass pcb_ptr as the first argument to __main() |
|
- | 42 | mov %o1, %o0 |
|
39 | sethi %hi(_gp), %l7 |
43 | sethi %hi(_gp), %l7 |
40 | call __main |
44 | call __main |
41 | or %l7, %lo(_gp), %l7 |
45 | or %l7, %lo(_gp), %l7 |
- | 46 | ||
42 | call main |
47 | call main |
43 | nop |
48 | nop |
- | 49 | ||
44 | call __exit |
50 | call __exit |
45 | nop |
51 | nop |