Subversion Repositories HelenOS-historic

Rev

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

Rev 1193 Rev 1194
Line 279... Line 279...
279
    i8042_wait();
279
    i8042_wait();
280
 
280
 
281
    trap_virtual_enable_irqs(1<<IRQ_KBD);
281
    trap_virtual_enable_irqs(1<<IRQ_KBD);
282
    chardev_initialize("i8042_kbd", &kbrd, &ops);
282
    chardev_initialize("i8042_kbd", &kbrd, &ops);
283
    stdin = &kbrd;
283
    stdin = &kbrd;
-
 
284
    /*
-
 
285
    * Clear input buffer
-
 
286
    */
284
    {
287
    {
285
        int a=0;
288
        int a=0;
286
        while(a<20) {i8042_data_read();a++;}  /*Clear input buffer*/
289
        while((i8042_status_read()&i8042_BUFFER_FULL_MASK)&&(a<20)) {
-
 
290
        i8042_data_read();
-
 
291
        a++;
-
 
292
        }  
287
    }
293
    }
288
}
294
}
289
 
295
 
290
/** Process i8042 interrupt.
296
/** Process i8042 interrupt.
291
 *
297
 *