Rev 1113 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 1113 | Rev 1367 | ||
|---|---|---|---|
| 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 |
|
| 34 | 35 | ||
| 35 | ## User-space task entry point |
36 | ## User-space task entry point |
| 36 | # |
37 | # |
| 37 | # |
38 | # |
| 38 | __entry: |
39 | __entry: |
| Line 40... | Line 41... | ||
| 40 | mov %ax, %ds |
41 | mov %ax, %ds |
| 41 | mov %ax, %es |
42 | mov %ax, %es |
| 42 | mov %ax, %fs |
43 | mov %ax, %fs |
| 43 | # Do not set %gs, it contains descriptor that can see TLS |
44 | # Do not set %gs, it contains descriptor that can see TLS |
| 44 | 45 | ||
| 45 | call __main |
46 | call __main |
| - | 47 | call __io_init |
|
| 46 | call main |
48 | call main |
| 47 | call __exit |
49 | call __exit |
| 48 | 50 | ||
| - | 51 | __entry_driver: |
|
| - | 52 | mov %ss, %ax |
|
| - | 53 | mov %ax, %ds |
|
| - | 54 | mov %ax, %es |
|
| - | 55 | mov %ax, %fs |
|
| - | 56 | # Do not set %gs, it contains descriptor that can see TLS |
|
| - | 57 | ||
| - | 58 | call __main |
|
| - | 59 | call main |
|
| 49 | .end __entry |
60 | call __exit |