mirror of
https://gitlab.os-k.eu/os-k-team/os-k.git
synced 2023-08-25 14:03:10 +02:00
You can trigger dummy syscalls
This commit is contained in:
parent
45fa378a65
commit
03220c04e1
@ -99,8 +99,6 @@ noreturn void BtStartKern(multiboot_info_t *mbInfo, uint mbMagic, void *codeSeg)
|
||||
"This program comes with ABSOLUTELY NO WARRANTY.\n"
|
||||
"This is free software, type `ver' for details.\n");
|
||||
|
||||
interrupt(0x80);
|
||||
|
||||
ShStartShell();
|
||||
|
||||
//KeCrashSystem();
|
||||
|
@ -312,6 +312,20 @@ error_t CmdTimerTest(int argc, char **argv, char *cmdline)
|
||||
return EOK;
|
||||
}
|
||||
|
||||
error_t CmdSyscallTest(int argc, char **argv, char *cmdline)
|
||||
{
|
||||
interrupt(0x80);
|
||||
|
||||
return EOK;
|
||||
}
|
||||
|
||||
error_t CmdRing3Test(int argc, char **argv, char *cmdline)
|
||||
{
|
||||
// TODO
|
||||
|
||||
return EOK;
|
||||
}
|
||||
|
||||
static Command_t testcmdtable[] =
|
||||
{
|
||||
{ "args", CmdArgs, "Print command line" },
|
||||
@ -330,9 +344,11 @@ static Command_t testcmdtable[] =
|
||||
{ "pfree", CmdPageFree, "Free a page block of id x" },
|
||||
{ "pf", CmdPF, "Provoke a PF. Usage: pfault <address>"},
|
||||
{ "ps", CmdPS, "Scheduler algorithm test" },
|
||||
{ "ring3", CmdRing3Test, "Jump to a userspace function" },
|
||||
{ "shell", CmdShell, "Start a new shell (nested)", },
|
||||
{ "stkov", CmdStackOverflow, "Provoke a stack overflow" },
|
||||
{ "stkun", CmdStackUnderflow, "Provoke a stack underflow" },
|
||||
{ "syscall", CmdSyscallTest, "Trigger a system call" },
|
||||
{ "timer", CmdTimerTest, "test timer of x ms" },
|
||||
{ NULL, NULL, NULL }
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user