rt: Use get_task_from_tcb during stack growth calls

This commit is contained in:
Brian Anderson 2012-03-21 14:20:06 -07:00
parent 4ad57f5c39
commit 0639b67290

View File

@ -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();
}