Rev 2071 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 2071 | Rev 2606 | ||
|---|---|---|---|
| Line 39... | Line 39... | ||
| 39 | * @param t Thread to be initialized. |
39 | * @param t Thread to be initialized. |
| 40 | */ |
40 | */ |
| 41 | void thread_create_arch(thread_t *t) |
41 | void thread_create_arch(thread_t *t) |
| 42 | { |
42 | { |
| 43 | t->arch.tls = 0; |
43 | t->arch.tls = 0; |
| - | 44 | t->arch.syscall_rsp[SYSCALL_USTACK_RSP] = 0; |
|
| - | 45 | /* |
|
| - | 46 | * Kernel RSP can be precalculated at thread creation time. |
|
| - | 47 | */ |
|
| - | 48 | t->arch.syscall_rsp[SYSCALL_KSTACK_RSP] = |
|
| - | 49 | (uintptr_t)&t->kstack[PAGE_SIZE - sizeof(uint64_t)]; |
|
| 44 | } |
50 | } |
| 45 | 51 | ||
| 46 | /** @} |
52 | /** @} |
| 47 | */ |
53 | */ |