rt: Reorganize stack growth code

This commit is contained in:
Brian Anderson
2011-11-30 17:54:11 -08:00
parent dd48a1af58
commit f2de42c39a
7 changed files with 75 additions and 72 deletions

View File

@@ -399,6 +399,11 @@ get_task_pointer(rust_task_id id) {
return task->kernel->get_task_by_id(id);
}
extern "C" rust_task *
rust_get_task() {
return rust_scheduler::get_task();
}
struct fn_env_pair {
intptr_t f;
intptr_t env;