Rev 3022 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3022 | Rev 4055 | ||
---|---|---|---|
Line 29... | Line 29... | ||
29 | .section .init, "ax" |
29 | .section .init, "ax" |
30 | 30 | ||
31 | .org 0 |
31 | .org 0 |
32 | 32 | ||
33 | .globl __entry |
33 | .globl __entry |
34 | .globl __entry_driver |
- | |
35 | 34 | ||
36 | ## User-space task entry point |
35 | ## User-space task entry point |
37 | # |
36 | # |
- | 37 | # r6 contains the PCB pointer |
|
38 | # |
38 | # |
39 | __entry: |
39 | __entry: |
- | 40 | # Pass the PCB pointer to __main() as the first argument. |
|
- | 41 | # The first argument is passed in r3. |
|
- | 42 | mr %r3, %r6 |
|
40 | bl __main |
43 | bl __main |
41 | bl __io_init |
- | |
42 | bl main |
- | |
43 | bl __exit |
- | |
44 | 44 | ||
45 | __entry_driver: |
- | |
46 | bl __main |
- | |
47 | bl main |
- | |
48 | bl __exit |
45 | bl __exit |