Changeset d03da17 in mainline


Ignore:
Timestamp:
2011-09-24T20:45:10Z (13 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
024fcc5
Parents:
eb87adb
Message:

console: initialize event-queue of kconsole (#377)

When some kernel console not aware keyboard (such as USB) sends event
while in the kernel console, the console service will try to add it
to the event queue of kernel console. Prior this commit this queue
was not initialized and thus the operation caused page violation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/console/console.c

    reb87adb rd03da17  
    904904                atomic_set(&consoles[i].refcnt, 0);
    905905                fibril_mutex_initialize(&consoles[i].mtx);
     906                prodcons_initialize(&consoles[i].input_pc);
    906907               
    907908                if (graphics_state == GRAPHICS_FULL) {
     
    942943                }
    943944               
    944                 prodcons_initialize(&consoles[i].input_pc);
    945945                cons_redraw_state(&consoles[i]);
    946946               
Note: See TracChangeset for help on using the changeset viewer.