Changeset 8b473ce in mainline
- Timestamp:
- 2006-04-14T14:28:55Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c624b96
- Parents:
- 9e1b581
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
genarch/src/i8042/i8042.c
r9e1b581 r8b473ce 282 282 chardev_initialize("i8042_kbd", &kbrd, &ops); 283 283 stdin = &kbrd; 284 /* 285 * Clear input buffer 286 */ 284 287 { 285 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 }
Note:
See TracChangeset
for help on using the changeset viewer.