Changeset 3fe00ee in mainline


Ignore:
Timestamp:
2009-03-22T19:48:11Z (15 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8b48063
Parents:
dc033a1
Message:

'kcon' shell builtin for switching to debug console.

Location:
uspace
Files:
4 added
6 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/Makefile

    rdc033a1 r3fe00ee  
    5858        cmds/modules/sleep/ \
    5959        cmds/modules/cp/ \
     60        cmds/modules/kcon/ \
    6061        cmds/builtins/ \
    6162        cmds/builtins/exit/\
     
    7273        cmds/modules/sleep/sleep.c \
    7374        cmds/modules/cp/cp.c \
     75        cmds/modules/kcon/kcon.c \
    7476        cmds/builtins/exit/exit.c \
    7577        cmds/builtins/cd/cd.c \
  • uspace/app/bdsh/cmds/modules/modules.h

    rdc033a1 r3fe00ee  
    2727#include "sleep/entry.h"
    2828#include "cp/entry.h"
     29#include "kcon/entry.h"
    2930
    3031/* Each .def function fills the module_t struct with the individual name, entry
     
    4243#include "sleep/sleep_def.h"
    4344#include "cp/cp_def.h"
     45#include "kcon/kcon_def.h"
    4446        {NULL, NULL, NULL, NULL}
    4547};
  • uspace/lib/libc/generic/console.c

    rdc033a1 r3fe00ee  
    283283}
    284284
     285void console_kcon_enable(void)
     286{
     287        int cons_phone = console_phone_get(true);
     288
     289        cbuffer_flush();
     290        async_msg_0(cons_phone, CONSOLE_KCON_ENABLE);
     291}
     292
    285293/** @}
    286294 */
  • uspace/lib/libc/include/console.h

    rdc033a1 r3fe00ee  
    5959extern void console_cursor_visibility(int);
    6060
     61extern void console_kcon_enable(void);
     62
    6163#endif
    6264 
  • uspace/lib/libc/include/ipc/console.h

    rdc033a1 r3fe00ee  
    4949        CONSOLE_SET_COLOR,
    5050        CONSOLE_SET_RGB_COLOR,
    51         CONSOLE_CURSOR_VISIBILITY
     51        CONSOLE_CURSOR_VISIBILITY,
     52        CONSOLE_KCON_ENABLE
    5253} console_request_t;
    5354
  • uspace/srv/console/console.c

    rdc033a1 r3fe00ee  
    626626                        arg4 = ev.c;
    627627                        break;
     628                case CONSOLE_KCON_ENABLE:
     629                        change_console(KERNEL_CONSOLE);
     630                        break;
    628631                }
    629632                ipc_answer_4(callid, EOK, arg1, arg2, arg3, arg4);
Note: See TracChangeset for help on using the changeset viewer.