Subversion Repositories HelenOS-historic

Rev

Rev 1264 | Rev 1573 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1264 Rev 1474
Line 35... Line 35...
35
 * kconsole specific wrappers from kconsole-unaware functions
35
 * kconsole specific wrappers from kconsole-unaware functions
36
 * from other subsystems.
36
 * from other subsystems.
37
 */
37
 */
38
 
38
 
39
#include <console/cmd.h>
39
#include <console/cmd.h>
-
 
40
#include <console/console.h>
40
#include <console/kconsole.h>
41
#include <console/kconsole.h>
41
#include <print.h>
42
#include <print.h>
42
#include <panic.h>
43
#include <panic.h>
43
#include <typedefs.h>
44
#include <typedefs.h>
44
#include <arch/types.h>
45
#include <arch/types.h>
Line 71... Line 72...
71
    .name = "exit",
72
    .name = "exit",
72
    .description ="Exit kconsole",
73
    .description ="Exit kconsole",
73
    .argc = 0
74
    .argc = 0
74
};
75
};
75
 
76
 
-
 
77
static int cmd_continue(cmd_arg_t *argv);
-
 
78
static cmd_info_t continue_info = {
-
 
79
    .name = "continue",
-
 
80
    .description ="Return console back to userspace",
-
 
81
    .func = cmd_continue,
-
 
82
    .argc = 0
-
 
83
};
-
 
84
 
76
/** Data and methods for 'description' command. */
85
/** Data and methods for 'description' command. */
77
static int cmd_desc(cmd_arg_t *argv);
86
static int cmd_desc(cmd_arg_t *argv);
78
static void desc_help(void);
87
static void desc_help(void);
79
static char desc_buf[MAX_CMDLINE+1];
88
static char desc_buf[MAX_CMDLINE+1];
80
static cmd_arg_t desc_argv = {
89
static cmd_arg_t desc_argv = {
Line 330... Line 339...
330
static cmd_info_t *basic_commands[] = {
339
static cmd_info_t *basic_commands[] = {
331
    &call0_info,
340
    &call0_info,
332
    &call1_info,
341
    &call1_info,
333
    &call2_info,
342
    &call2_info,
334
    &call3_info,
343
    &call3_info,
-
 
344
    &continue_info,
335
    &cpus_info,
345
    &cpus_info,
336
    &desc_info,
346
    &desc_info,
337
    &exit_info,
347
    &exit_info,
338
    &halt_info,
348
    &halt_info,
339
    &help_info,
349
    &help_info,
Line 697... Line 707...
697
int cmd_version(cmd_arg_t *argv)
707
int cmd_version(cmd_arg_t *argv)
698
{
708
{
699
    version_print();
709
    version_print();
700
    return 1;
710
    return 1;
701
}
711
}
-
 
712
 
-
 
713
/** Command for returning console back to userspace.
-
 
714
 *
-
 
715
 * @param argv Ignored.
-
 
716
 *
-
 
717
 * return Always 1.
-
 
718
 */
-
 
719
int cmd_continue(cmd_arg_t *argv)
-
 
720
{
-
 
721
    arch_release_console();
-
 
722
    return 1;
-
 
723
}