Subversion Repositories HelenOS-historic

Rev

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

Rev 1694 Rev 1707
Line 62... Line 62...
62
 
62
 
63
static void irq_handler(ipc_callid_t iid, ipc_call_t *call)
63
static void irq_handler(ipc_callid_t iid, ipc_call_t *call)
64
{
64
{
65
    int chr;
65
    int chr;
66
 
66
 
-
 
67
#ifdef MOUSE_ENABLED
-
 
68
    if (mouse_arch_process(phone2cons, call))
-
 
69
        return;
-
 
70
#endif
-
 
71
   
-
 
72
    kbd_arch_process(&keybuffer, call);
-
 
73
 
67
    if (cons_connected && phone2cons != -1) {
74
    if (cons_connected && phone2cons != -1) {
68
        /* recode to ASCII - one interrupt can produce more than one code so result is stored in fifo */
75
        /* recode to ASCII - one interrupt can produce more than one code so result is stored in fifo */
69
        kbd_arch_process(&keybuffer, call);
-
 
70
       
-
 
71
        while (!keybuffer_empty(&keybuffer)) {
76
        while (!keybuffer_empty(&keybuffer)) {
72
            if (!keybuffer_pop(&keybuffer, (int *)&chr))
77
            if (!keybuffer_pop(&keybuffer, (int *)&chr))
73
                break;
78
                break;
74
 
79
 
75
            async_msg(phone2cons, KBD_PUSHCHAR, chr);
80
            async_msg(phone2cons, KBD_PUSHCHAR, chr);