From f8ff013e3cc737b92b5a140dfd0ddcc5ab6773d9 Mon Sep 17 00:00:00 2001 From: Michael Bebenita Date: Fri, 27 Aug 2010 18:26:36 -0700 Subject: Added a few utility classes, cleaned up the include order of .h files, and started to make the Rust kernel own domain message queues rather than the Rust domains themselves. --- src/rt/rust.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/rt/rust.cpp') diff --git a/src/rt/rust.cpp b/src/rt/rust.cpp index 905b0c8a359..43818de5514 100644 --- a/src/rt/rust.cpp +++ b/src/rt/rust.cpp @@ -1,6 +1,5 @@ #include "rust_internal.h" - struct command_line_args { @@ -80,6 +79,7 @@ rust_start(uintptr_t main_fn, rust_crate const *crate, int argc, char **argv) { rust_srv srv; rust_dom dom(&srv, crate, "main"); + srv.kernel->register_domain(&dom); command_line_args args(dom, argc, argv); dom.log(rust_log::DOM, "startup: %d args", args.argc); @@ -99,6 +99,7 @@ rust_start(uintptr_t main_fn, rust_crate const *crate, int argc, char **argv) sizeof(main_args)); ret = dom.start_main_loop(); + srv.kernel->deregister_domain(&dom); } #if !defined(__WIN32__) -- cgit 1.4.1-3-g733a5