= {
{
"echo",
echo,
"display a line of text" },
{
"help",
help,
"print help message for kernel commands" },
{
"quit",
quit,
"quit the operating system" },
{
"clear",
clear,
"clear the kernel console" },
{
"framebuffer",
framebuffer,
"manage the screen framebuffer" },
{
"idt",
idt,
"print interrupt descriptor table info" },
{
"gdt",
gdt,
"print global descriptor table info" },
{
"div",
div,
"divide two integers and display the result" },
}
struct cpu_gdt_entry gdt[GDT_SEGMENTS]
Definition gdt.c:4
struct cpu_idt_entry idt[256]
Definition idt.c:9
static int div(int argc, const char *argv[], putchar putc)
Definition kshell_cmds.c:129
static int clear(int argc, const char *argv[], putchar putc)
Definition kshell_cmds.c:84
static int quit(int argc, const char *argv[], putchar putc)
Definition kshell_cmds.c:78
static int help(int argc, const char *argv[], putchar putc)
Definition kshell_cmds.c:63
static int echo(int argc, const char *argv[], putchar putc)
Definition kshell_cmds.c:53
static int framebuffer(int argc, const char *argv[], putchar putc)
Definition kshell_cmds.c:90
#define NULL
Definition stddef.h:4
The shell's commands.