From 0639b67290cfc631fe2728a587380f3a97fd7408 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Wed, 21 Mar 2012 14:20:06 -0700 Subject: [PATCH] rt: Use get_task_from_tcb during stack growth calls --- src/rt/rust_upcall.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rt/rust_upcall.cpp b/src/rt/rust_upcall.cpp index 58798147e9b..bc404ba9f1e 100644 --- a/src/rt/rust_upcall.cpp +++ b/src/rt/rust_upcall.cpp @@ -442,7 +442,7 @@ upcall_log_type(const type_desc *tydesc, uint8_t *data, uint32_t level) { // NB: This needs to be blazing fast. Don't switch stacks extern "C" CDECL void * upcall_new_stack(size_t stk_sz, void *args_addr, size_t args_sz) { - rust_task *task = rust_task_thread::get_task(); + rust_task *task = rust_task::get_task_from_tcb(); return task->next_stack(stk_sz, args_addr, args_sz); @@ -451,7 +451,7 @@ upcall_new_stack(size_t stk_sz, void *args_addr, size_t args_sz) { // NB: This needs to be blazing fast. Don't switch stacks extern "C" CDECL void upcall_del_stack() { - rust_task *task = rust_task_thread::get_task(); + rust_task *task = rust_task::get_task_from_tcb(); task->prev_stack(); }