rt: Remove rust_task::rust_sp
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user