Simple kernel shell for testing purposes. More...
#include <core.h>
#include <libc/stdio.h>
#include <libc/stdlib.h>
#include <libc/string.h>
#include <kernel/device/pci.h>
#include <kernel/device/tty.h>
#include <kernel/device/keyboard.h>
#include <kernel/mem/acpi.h>
#include <kernel/mem/heap.h>
#include <kernel/mem/paging.h>
#include <kernel/x86/cpu.h>
Go to the source code of this file.
Data Structures | |
struct | mode_t |
Shell mode descriptor. More... | |
struct | cmd |
A command descriptor, describing each command accepted in command mode. More... | |
Macros | |
#define | TTY_CONSOLE 0 |
Functions | |
static void | command_prompt () |
static void | command_run () |
static void | keycode_run () |
static bool | cmd_display_help () |
static bool | cmd_display_apic () |
static bool | cmd_display_pci () |
static bool | cmd_display_pcie () |
static bool | cmd_switch_to_keycodes () |
static bool | cmd_test_heap () |
static void | switch_mode (mode_t *mode) |
static int | cmp_cmds (const void *c1, const void *c2) |
static bool | command_exec (const char *cmd) |
void | kshell () |
Variables | |
static mode_t | mode_command |
static mode_t | mode_keycode |
static mode_t * | active_mode |
static struct cmd | commands [] |
Simple kernel shell for testing purposes.
Definition in file shell.c.
#define TTY_CONSOLE 0 |
Definition at line 22 of file shell.c.
Referenced by cmd_display_apic(), cmd_display_help(), cmd_display_pcie(), cmd_switch_to_keycodes(), command_exec(), command_prompt(), command_run(), and keycode_run().
|
static |
Definition at line 221 of file shell.c.
Referenced by command_run().
|
static |
Definition at line 62 of file shell.c.
Referenced by cmd_switch_to_keycodes(), and keycode_run().
|
static |
|
static |
Definition at line 206 of file shell.c.
Referenced by command_run().
|
static |
|
static |
|
static |