diff options
| author | Josh Matthews <josh@joshmatthews.net> | 2013-04-10 10:28:26 -0400 |
|---|---|---|
| committer | Josh Matthews <josh@joshmatthews.net> | 2013-04-21 22:41:43 +0200 |
| commit | 5cc6a0bf327e84569166d0ae7c07615e5afd5238 (patch) | |
| tree | 7fa9fc6e5755d1b0f76947486f5609cc7ec60234 /src/rt/rust_builtin.cpp | |
| parent | 07e087bf310e7e7911bf05efa36a2cdb57855a4e (diff) | |
| download | rust-5cc6a0bf327e84569166d0ae7c07615e5afd5238.tar.gz rust-5cc6a0bf327e84569166d0ae7c07615e5afd5238.zip | |
rt: Make the C stack segment accessible to runtime users.
Diffstat (limited to 'src/rt/rust_builtin.cpp')
| -rw-r--r-- | src/rt/rust_builtin.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp index 3c6cc9d9245..a2bbaf80c0a 100644 --- a/src/rt/rust_builtin.cpp +++ b/src/rt/rust_builtin.cpp @@ -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); |
