core: Add a scheduler mode, osmain, to spawn onto the main scheduler
This commit is contained in:
@@ -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++
|
||||
|
||||
Reference in New Issue
Block a user