std: Make console log off/on controls work with newsched

This commit is contained in:
Brian Anderson
2013-06-21 16:52:07 -07:00
parent 1b7c99655f
commit 95eb01957b
5 changed files with 55 additions and 16 deletions

View File

@@ -591,12 +591,18 @@ rust_log_console_on() {
log_console_on();
}
extern void log_console_off(rust_env *env);
extern void log_console_off();
extern "C" CDECL void
rust_log_console_off() {
rust_task *task = rust_get_current_task();
log_console_off(task->kernel->env);
log_console_off();
}
extern bool should_log_console();
extern "C" CDECL uintptr_t
rust_should_log_console() {
return (uintptr_t)should_log_console();
}
extern "C" CDECL void