rt: Remove rust_task::rust_sp

This commit is contained in:
Brian Anderson
2012-02-08 17:55:36 -08:00
parent d39ea47746
commit 889a783494
2 changed files with 1 additions and 4 deletions

View File

@@ -219,7 +219,6 @@ rust_task::rust_task(rust_task_thread *thread, rust_task_list *state,
DLOG(thread, task, "sizeof(task) = %d (0x%x)", sizeof *this, sizeof *this); DLOG(thread, task, "sizeof(task) = %d (0x%x)", sizeof *this, sizeof *this);
stk = new_stk(thread, this, init_stack_sz); stk = new_stk(thread, this, init_stack_sz);
rust_sp = stk->end;
if (supervisor) { if (supervisor) {
supervisor->ref(); supervisor->ref();
} }
@@ -336,7 +335,7 @@ rust_task::start(spawn_fn spawnee_fn,
I(thread, stk->data != NULL); I(thread, stk->data != NULL);
char *sp = (char *)rust_sp; char *sp = (char *)stk->end;
sp -= sizeof(spawn_args); sp -= sizeof(spawn_args);

View File

@@ -53,8 +53,6 @@ rust_task : public kernel_owned<rust_task>, rust_cond
bool notify_enabled; bool notify_enabled;
chan_handle notify_chan; chan_handle notify_chan;
uintptr_t rust_sp; // Saved sp when not running.
context ctx; context ctx;
stk_seg *stk; stk_seg *stk;
uintptr_t runtime_sp; // Runtime sp while task running. uintptr_t runtime_sp; // Runtime sp while task running.