Rev 3078 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3078 | Rev 3222 | ||
---|---|---|---|
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 |
42 | call main |
- | |
43 | nop |
46 | |
44 | call __exit |
47 | call __exit |
45 | nop |
48 | nop |