Changeset a832dd7 in mainline


Ignore:
Timestamp:
2006-06-21T07:34:40Z (18 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2e9eae2
Parents:
2c8a70a
Message:

Disable mouse on entry to kconsole. If it doesn't help
(like in qemu, which still generates mouse data), we would have
to let it enabled and filter out the mouse data.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • genarch/src/i8042/i8042.c

    r2c8a70a ra832dd7  
    7171
    7272#define i8042_SET_COMMAND       0x60
    73 #define i8042_COMMAND           0x49
     73#define i8042_COMMAND           0x69
    7474
    7575#define i8042_BUFFER_FULL_MASK  0x01
    7676#define i8042_WAIT_MASK         0x02
     77#define i8042_MOUSE_DATA        0x20
    7778
    7879#define SPECIAL         '?'
     
    323324{
    324325        __u8 x;
    325 
    326         while ((i8042_status_read() & i8042_BUFFER_FULL_MASK)) {
     326        __u8 status;
     327
     328        while (((status=i8042_status_read()) & i8042_BUFFER_FULL_MASK)) {
    327329                x = i8042_data_read();
     330
     331                if ((status & i8042_MOUSE_DATA))
     332                        continue;
     333
    328334                if (x & KEY_RELEASE)
    329335                        key_released(x ^ KEY_RELEASE);
Note: See TracChangeset for help on using the changeset viewer.