Changeset d063365 in mainline
- Timestamp:
- 2009-02-21T21:47:29Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 26e51609
- Parents:
- 7919cd5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/src/kbd/i8042.c
r7919cd5 rd063365 50 50 #include <interrupt.h> 51 51 #include <sysinfo/sysinfo.h> 52 #include <ipc/irq.h>53 52 54 53 i8042_instance_t lgcy_i8042_instance = { … … 157 156 /* 158 157 * Clear input buffer. 159 * Number of iterations is limited to prevent infinite looping.160 158 */ 161 int i; 162 for (i = 0; (pio_read_8(&dev->status) & i8042_BUFFER_FULL_MASK) && 163 i < 100; i++) { 159 while (pio_read_8(&dev->status) & i8042_BUFFER_FULL_MASK) 164 160 (void) pio_read_8(&dev->data); 165 }166 161 162 /* 163 * This is the necessary evil until the userspace driver is entirely 164 * self-sufficient. 165 */ 167 166 sysinfo_set_item_val("kbd", NULL, true); 168 167 sysinfo_set_item_val("kbd.devno", NULL, kbd_devno);
Note:
See TracChangeset
for help on using the changeset viewer.