Rev 3022 | Go to most recent revision | Show entire file | Ignore 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 | .global __entry |
33 | .global __entry |
34 | .global __entry_driver |
- | |
35 | 34 | ||
36 | ## User-space task entry point |
35 | ## User-space task entry point |
37 | # |
36 | # |
- | 37 | # r1 contains the PCB pointer |
|
38 | # |
38 | # |
39 | __entry: |
39 | __entry: |
- | 40 | # Pass pcb_ptr to __main as the first argument (in r0) |
|
- | 41 | mov r0, r1 |
|
40 | bl __main |
42 | bl __main |
41 | bl __io_init |
- | |
42 | bl main |
- | |
43 | bl __exit |
- | |
44 | 43 | ||
45 | __entry_driver: |
- | |
46 | bl __main |
- | |
47 | bl main |
- | |
48 | bl __exit |
44 | bl __exit |
49 | - |