Changeset a116ef22 in mainline


Ignore:
Timestamp:
2006-06-02T15:56:46Z (19 years ago)
Author:
Josef Cejka <malyzelenyhnus@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b1f51f0
Parents:
bc54f56e
Message:

Support for switch to kernel console.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • console/console.c

    rbc54f56e ra116ef22  
    172172                       
    173173                        retval = 0;
    174                         c = IPC_GET_ARG1(call);
     174                        c = IPC_GET_ARG1(call) - '0';
    175175                        /* switch to another virtual console */
    176176                       
    177177                        conn = &connections[active_console];
    178178//                      if ((c >= KBD_KEY_F1) && (c < KBD_KEY_F1 + CONSOLE_COUNT)) {
    179                         if ((c >= '1') && (c < '1' + CONSOLE_COUNT)) {
     179                        if ((c >= 0) && (c < CONSOLE_COUNT)) {
    180180                                /*FIXME: draw another console content from buffer */
    181                                 if (c - '1' == active_console)
     181                                if (c == active_console)
    182182                                                break;
    183                                 active_console = c - '1';
     183                               
     184                                if (c == 0) {
     185                                        /* switch to kernel console*/
     186                                         __SYSCALL0(SYS_DEBUG_ENABLE_CONSOLE);
     187                                         
     188                                } else {
     189                                        active_console = c;
     190                                }
     191                               
     192                               
    184193                                conn = &connections[active_console];
    185194
     
    191200                                                        interbuffer[i + j*conn->screenbuffer.size_x] = *get_field_at(&(conn->screenbuffer),i, j);
    192201                                                       
    193                                         ipc_call_sync(fb_info.phone, FB_DRAW_TEXT_DATA, 0, NULL);               
     202                                        sync_send_2(fb_info.phone, FB_DRAW_TEXT_DATA, 0, 0, NULL, NULL);               
    194203                                } else {
    195204
Note: See TracChangeset for help on using the changeset viewer.