Changeset e9073f2 in mainline for console/gcons.c


Ignore:
Timestamp:
2006-06-05T23:02:13Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
51dbadf3
Parents:
9996ed5
Message:

Added correct disconnect handling.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • console/gcons.c

    r9996ed5 re9073f2  
    170170        redraw_state(consnum);
    171171       
     172        vp_switch(console_vp);
     173}
     174
     175/** Notification function called on service disconnect from console */
     176void gcons_notify_disconnect(int consnum)
     177{
     178        if (!use_gcons)
     179                return;
     180        if (active_console == consnum)
     181                console_state[consnum] = CONS_DISCONNECTED_SEL;
     182        else
     183                console_state[consnum] = CONS_DISCONNECTED;
     184
     185        if (active_console == KERNEL_CONSOLE)
     186                return;
     187
     188        redraw_state(consnum);
    172189        vp_switch(console_vp);
    173190}
Note: See TracChangeset for help on using the changeset viewer.