rt: Add a task field to stk_seg and populate it

This commit is contained in:
Brian Anderson
2012-03-21 14:13:31 -07:00
parent 4a0c6c7f41
commit 08f783ff10
2 changed files with 2 additions and 0 deletions

View File

@@ -508,6 +508,7 @@ rust_task::new_stack(size_t requested_sz) {
size_t sz = rust_stk_sz + RED_ZONE_SIZE;
stk_seg *new_stk = create_stack(&local_region, sz);
LOGPTR(thread, "new stk", (uintptr_t)new_stk);
new_stk->task = this;
new_stk->next = NULL;
new_stk->prev = stk;
if (stk) {