92,7 → 92,7 |
static unative_t sys_debug_enable_console(void) |
{ |
#ifdef CONFIG_KCONSOLE |
arch_grab_console(); |
grab_console(); |
return true; |
#else |
return false; |
99,6 → 99,13 |
#endif |
} |
|
/** Tell kernel to relinquish keyboard/console access */ |
static unative_t sys_debug_disable_console(void) |
{ |
release_console(); |
return true; |
} |
|
/** Dispatch system call */ |
unative_t syscall_handler(unative_t a1, unative_t a2, unative_t a3, |
unative_t a4, unative_t a5, unative_t a6, unative_t id) |
184,7 → 191,8 |
|
/* Debug calls */ |
(syshandler_t) sys_debug_enable_console, |
|
(syshandler_t) sys_debug_disable_console, |
|
(syshandler_t) sys_ipc_connect_kbox |
}; |
|