rt: Add RUST_DEBUG_MEM to rust_env to avoid races

This commit is contained in:
Brian Anderson
2013-03-12 12:23:24 -07:00
parent ebba8b4e35
commit 63d18658c1
7 changed files with 63 additions and 7 deletions

View File

@@ -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: