Changeset 10270a8 in mainline for uspace/srv/console/console.c


Ignore:
Timestamp:
2009-04-24T20:24:41Z (16 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ebfabf6
Parents:
c07544d3
Message:

Better switch to kcon on serial console — relinquish/reclaim screen before/after switching to kcon.

File:
1 edited

Legend:

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

    rc07544d3 r10270a8  
    142142}
    143143
     144static void screen_grab(void)
     145{
     146        ipc_call_sync_0_0(fb_info.phone, FB_SCREEN_GRAB);
     147}
     148
     149static void screen_relinquish(void)
     150{
     151        ipc_call_sync_0_0(fb_info.phone, FB_SCREEN_RELINQUISH);
     152}
     153
    144154static void set_style(int style)
    145155{
     
    331341                curs_hide_sync();
    332342                gcons_in_kernel();
     343                screen_relinquish();
    333344                async_serialize_end();
     345
    334346               
    335347                if (__SYSCALL0(SYS_DEBUG_ENABLE_CONSOLE)) {
     
    343355                async_serialize_start();
    344356               
    345                 if (active_console == KERNEL_CONSOLE)
     357                if (active_console == KERNEL_CONSOLE) {
     358                        screen_grab();
    346359                        gcons_redraw_console();
     360                }
    347361               
    348362                active_console = newcons;
Note: See TracChangeset for help on using the changeset viewer.