Changeset 8c6337d in mainline


Ignore:
Timestamp:
2008-12-24T14:00:21Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b1a29bb
Parents:
7217199
Message:

make sure the cursor is already off when switching to kernel console (use synchronous messaging)

File:
1 edited

Legend:

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

    r7217199 r8c6337d  
    107107}
    108108
    109 static void curs_visibility(int v)
    110 {
    111         async_msg_1(fb_info.phone, FB_CURSOR_VISIBILITY, v);
     109static void curs_visibility(bool visible)
     110{
     111        async_msg_1(fb_info.phone, FB_CURSOR_VISIBILITY, visible);
     112}
     113
     114static void curs_hide_sync(void)
     115{
     116        ipc_call_sync_1_0(fb_info.phone, FB_CURSOR_VISIBILITY, false);
    112117}
    113118
     
    198203        if (newcons == KERNEL_CONSOLE) {
    199204                async_serialize_start();
    200                 curs_visibility(0);
     205                curs_hide_sync();
    201206                gcons_in_kernel();
    202207                async_serialize_end();
     
    205210                        active_console = KERNEL_CONSOLE;
    206211                else
    207                         newcons == active_console;
     212                        newcons = active_console;
    208213        }
    209214       
     
    219224               
    220225                set_style(&conn->screenbuffer.style);
    221                 curs_visibility(0);
     226                curs_visibility(false);
    222227                if (interbuffer) {
    223228                        for (i = 0; i < conn->screenbuffer.size_x; i++)
Note: See TracChangeset for help on using the changeset viewer.