From 8d617e638e3fbdd69a7386b64269fdd199423801 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Tue, 28 Feb 2012 16:57:22 -0800 Subject: [PATCH] rt: Reset the stack boundary after returning from crust functions --- src/rt/rust_upcall.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rt/rust_upcall.cpp b/src/rt/rust_upcall.cpp index affaa3e8f9c..8671c2e2480 100644 --- a/src/rt/rust_upcall.cpp +++ b/src/rt/rust_upcall.cpp @@ -100,6 +100,9 @@ upcall_call_shim_on_rust_stack(void *args, void *fn_ptr) { "Rust task failed after reentering the Rust stack"); abort(); } + + // FIXME: As above + record_sp(0); } /**********************************************************************/