rt: Make the C stack segment accessible to runtime users.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user