Subversion Repositories HelenOS

Rev

Rev 3842 | Rev 4148 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3842 Rev 3844
Line 90... Line 90...
90
 
90
 
91
/** Tell kernel to get keyboard/console access again */
91
/** Tell kernel to get keyboard/console access again */
92
static unative_t sys_debug_enable_console(void)
92
static unative_t sys_debug_enable_console(void)
93
{
93
{
94
#ifdef CONFIG_KCONSOLE
94
#ifdef CONFIG_KCONSOLE
95
    arch_grab_console();
95
    grab_console();
96
    return true;
96
    return true;
97
#else
97
#else
98
    return false;
98
    return false;
99
#endif
99
#endif
100
}
100
}
101
 
101
 
-
 
102
/** Tell kernel to relinquish keyboard/console access */
-
 
103
static unative_t sys_debug_disable_console(void)
-
 
104
{
-
 
105
    release_console();
-
 
106
    return true;
-
 
107
}
-
 
108
 
102
/** Dispatch system call */
109
/** Dispatch system call */
103
unative_t syscall_handler(unative_t a1, unative_t a2, unative_t a3,
110
unative_t syscall_handler(unative_t a1, unative_t a2, unative_t a3,
104
    unative_t a4, unative_t a5, unative_t a6, unative_t id)
111
    unative_t a4, unative_t a5, unative_t a6, unative_t id)
105
{
112
{
106
    unative_t rc;
113
    unative_t rc;
Line 182... Line 189...
182
    (syshandler_t) sys_sysinfo_valid,
189
    (syshandler_t) sys_sysinfo_valid,
183
    (syshandler_t) sys_sysinfo_value,
190
    (syshandler_t) sys_sysinfo_value,
184
   
191
   
185
    /* Debug calls */
192
    /* Debug calls */
186
    (syshandler_t) sys_debug_enable_console,
193
    (syshandler_t) sys_debug_enable_console,
-
 
194
    (syshandler_t) sys_debug_disable_console,
187
 
195
   
188
    (syshandler_t) sys_ipc_connect_kbox
196
    (syshandler_t) sys_ipc_connect_kbox
189
};
197
};
190
 
198
 
191
/** @}
199
/** @}
192
 */
200
 */