Changeset ccd1a14 in mainline for uspace/srv/console/console.c


Ignore:
Timestamp:
2009-04-25T11:54:17Z (15 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9701d49
Parents:
ebfabf6
Message:

Stop userspace kbd driver from polling when switching to kcon. Also, fix swapped reversed enabling/disabling of polling in kernel sgcn and ski drivers.

File:
1 edited

Legend:

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

    rebfabf6 rccd1a14  
    6565int prev_console = 0;
    6666
     67/** Phone to the keyboard driver. */
     68static int kbd_phone;
     69
    6770/** Information about framebuffer */
    6871struct {
     
    150153{
    151154        ipc_call_sync_0_0(fb_info.phone, FB_SCREEN_RECLAIM);
     155}
     156
     157static void kbd_yield(void)
     158{
     159        ipc_call_sync_0_0(kbd_phone, KBD_YIELD);
     160}
     161
     162static void kbd_reclaim(void)
     163{
     164        ipc_call_sync_0_0(kbd_phone, KBD_RECLAIM);
    152165}
    153166
     
    342355                gcons_in_kernel();
    343356                screen_yield();
     357                kbd_yield();
    344358                async_serialize_end();
    345359
     
    357371                if (active_console == KERNEL_CONSOLE) {
    358372                        screen_reclaim();
     373                        kbd_reclaim();
    359374                        gcons_redraw_console();
    360375                }
     
    666681       
    667682        ipcarg_t phonehash;
    668         int kbd_phone;
    669683        size_t ib_size;
    670684        int i;
Note: See TracChangeset for help on using the changeset viewer.