Rev 3022 | 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 | .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 | # %rdi contains the PCB pointer |
|
38 | # |
38 | # |
39 | __entry: |
39 | __entry: |
- | 40 | # %rdi was deliberately chosen as the first argument is also in %rdi |
|
- | 41 | # Pass PCB pointer to __main (no operation) |
|
40 | call __main |
42 | call __main |
41 | call __io_init |
- | |
42 | call main |
- | |
43 | call __exit |
- | |
44 | 43 | ||
45 | __entry_driver: |
- | |
46 | call __main |
- | |
47 | call main |
- | |
48 | call __exit |
44 | call __exit |