Subversion Repositories HelenOS

Rev

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

Rev 2214 Rev 2263
Line 36... Line 36...
36
#include <arch/console.h>
36
#include <arch/console.h>
37
#include <arch/drivers/gxemul.h>
37
#include <arch/drivers/gxemul.h>
38
 
38
 
39
void console_init(devno_t devno)
39
void console_init(devno_t devno)
40
{
40
{
-
 
41
#if MACHINE == MACHINE_GXEMUL_TESTARM
41
    gxemul_console(devno);
42
    gxemul_console(devno);
-
 
43
#endif
42
}
44
}
43
 
45
 
44
/** Acquire console back for kernel
46
/** Acquire console back for kernel
45
 *
47
 *
46
 */
48
 */
47
void arch_grab_console(void)
49
void arch_grab_console(void)
48
{
50
{
-
 
51
#if MACHINE == MACHINE_GXEMUL_TESTARM
49
    gxemul_kbd_grab();
52
    gxemul_kbd_grab();
-
 
53
#endif
50
}
54
}
51
 
55
 
52
/** Return console to userspace
56
/** Return console to userspace
53
 *
57
 *
54
 */
58
 */
55
void arch_release_console(void)
59
void arch_release_console(void)
56
{
60
{
-
 
61
#if MACHINE == MACHINE_GXEMUL_TESTARM
57
    gxemul_kbd_release();
62
    gxemul_kbd_release();
-
 
63
#endif
58
}
64
}
59
 
65
 
60
/** @}
66
/** @}
61
 */
67
 */