Rev 3095 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3095 | 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 | # r2 contains the PCB pointer |
|
37 | # |
38 | # |
38 | __entry: |
39 | __entry: |
39 | alloc loc0 = ar.pfs, 0, 1, 2, 0 |
40 | alloc loc0 = ar.pfs, 0, 1, 2, 0 |
40 | mov r1 = _gp |
41 | mov r1 = _gp |
- | 42 | ||
- | 43 | # Pass PCB pointer as the first argument to __main |
|
- | 44 | mov out0 = r2 |
|
41 | br.call.sptk.many b0 = __main |
45 | br.call.sptk.many b0 = __main |
42 | 0: |
46 | 0: |
43 | br.call.sptk.many b0 = main |
- | |
44 | 1: |
- | |
45 | br.call.sptk.many b0 = __exit |
47 | br.call.sptk.many b0 = __exit |