core: Add a scheduler mode, osmain, to spawn onto the main scheduler

This commit is contained in:
Brian Anderson
2012-04-03 14:03:27 -07:00
parent e1858882a4
commit bef72447e7
5 changed files with 90 additions and 2 deletions

View File

@@ -646,6 +646,12 @@ rust_dbg_call(dbg_callback cb, void *data) {
return cb(data);
}
extern "C" CDECL rust_sched_id
rust_osmain_sched_id() {
rust_task *task = rust_sched_loop::get_task();
return task->kernel->osmain_sched_id();
}
//
// Local Variables:
// mode: C++