From 63d18658c1d19bdcc4cad91ce808a9590b53f3d2 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Tue, 12 Mar 2013 12:23:24 -0700 Subject: rt: Add RUST_DEBUG_MEM to rust_env to avoid races --- src/rt/rust_builtin.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/rt/rust_builtin.cpp') diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp index ccb2c0c5c1c..a2053c115bb 100644 --- a/src/rt/rust_builtin.cpp +++ b/src/rt/rust_builtin.cpp @@ -876,6 +876,11 @@ rust_dbg_extern_identity_u8(char u) { return u; } +extern "C" rust_env* +rust_get_rt_env() { + rust_task *task = rust_get_current_task(); + return task->kernel->env; +} // // Local Variables: -- cgit 1.4.1-3-g733a5