Changeset 41d33ac in mainline for generic/src/console/cmd.c


Ignore:
Timestamp:
2006-05-31T22:18:40Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e7ed9868
Parents:
018f95a
Message:

Added syscall that lets kernel regain access to keyboard.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/src/console/cmd.c

    r018f95a r41d33ac  
    3838
    3939#include <console/cmd.h>
     40#include <console/console.h>
    4041#include <console/kconsole.h>
    4142#include <print.h>
     
    7172        .name = "exit",
    7273        .description ="Exit kconsole",
     74        .argc = 0
     75};
     76
     77static int cmd_continue(cmd_arg_t *argv);
     78static cmd_info_t continue_info = {
     79        .name = "continue",
     80        .description ="Return console back to userspace",
     81        .func = cmd_continue,
    7382        .argc = 0
    7483};
     
    333342        &call2_info,
    334343        &call3_info,
     344        &continue_info,
    335345        &cpus_info,
    336346        &desc_info,
     
    700710        return 1;
    701711}
     712
     713/** Command for returning console back to userspace.
     714 *
     715 * @param argv Ignored.
     716 *
     717 * return Always 1.
     718 */
     719int cmd_continue(cmd_arg_t *argv)
     720{
     721        arch_release_console();
     722        return 1;
     723}
Note: See TracChangeset for help on using the changeset viewer.