diff options
Diffstat (limited to 'src/rt/rust_upcall.cpp')
| -rw-r--r-- | src/rt/rust_upcall.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/rt/rust_upcall.cpp b/src/rt/rust_upcall.cpp index 5febc5098a2..981ce0ffb7e 100644 --- a/src/rt/rust_upcall.cpp +++ b/src/rt/rust_upcall.cpp @@ -614,13 +614,17 @@ upcall_new_stack(struct rust_new_stack2_args *args) { args->args_sz); } -// FIXME: As above extern "C" CDECL void -upcall_del_stack() { +upcall_s_del_stack() { rust_task *task = rust_scheduler::get_task(); task->del_stack(); } +extern "C" CDECL void +upcall_del_stack() { + UPCALL_SWITCH_STACK(NULL, upcall_s_del_stack); +} + // Landing pads need to call this to insert the // correct limit into TLS. // NB: This must run on the Rust stack because it |
