rt: Make the C stack segment accessible to runtime users.

This commit is contained in:
Josh Matthews
2013-04-10 10:28:26 -04:00
parent 07e087bf31
commit 5cc6a0bf32
4 changed files with 8 additions and 0 deletions

View File

@@ -544,6 +544,11 @@ rust_get_stack_segment() {
return rust_get_current_task()->stk;
}
extern "C" CDECL stk_seg *
rust_get_c_stack() {
return rust_get_current_task()->get_c_stack();
}
extern "C" CDECL void
start_task(rust_task *target, fn_env_pair *f) {
target->start(f->f, f->env, NULL);