Rev 2071 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2071 | Rev 2272 | ||
---|---|---|---|
Line 60... | Line 60... | ||
60 | * not necessary because: |
60 | * not necessary because: |
61 | * - spill traps operate only in the alternate global set, |
61 | * - spill traps operate only in the alternate global set, |
62 | * - preemptible trap handler switches to alternate globals |
62 | * - preemptible trap handler switches to alternate globals |
63 | * before it explicitly uses %g7. |
63 | * before it explicitly uses %g7. |
64 | */ |
64 | */ |
65 | uint64_t sp = (uintptr_t) THREAD->kstack + STACK_SIZE |
65 | uint64_t sp = (uintptr_t) THREAD->kstack + STACK_SIZE - |
66 | - (STACK_BIAS + ALIGN_UP(STACK_ITEM_SIZE, |
66 | (STACK_BIAS + ALIGN_UP(STACK_ITEM_SIZE, STACK_ALIGNMENT)); |
67 | STACK_ALIGNMENT)); |
- | |
68 | write_to_ig_g6(sp); |
67 | write_to_ig_g6(sp); |
69 | write_to_ag_g6(sp); |
68 | write_to_ag_g6(sp); |
70 | write_to_ag_g7((uintptr_t) THREAD->arch.uspace_window_buffer); |
69 | write_to_ag_g7((uintptr_t) THREAD->arch.uspace_window_buffer); |
71 | } |
70 | } |
72 | } |
71 | } |