more UBsan
This commit is contained in:
@@ -44,6 +44,7 @@ void pedicel_main(void* arg)
|
||||
printf("\r\nYou are currently running the test kernel shell. This is not\r\n"
|
||||
"a fully-fledged shell like you'd find in a complete operating system,\r\n"
|
||||
"but rather a toy to play around in the meantime.\r\n\r\n"
|
||||
"clear - clear the screen\r\n"
|
||||
"panic - trigger a test panic\r\n"
|
||||
"syscall - trigger int 0x80\r\n"
|
||||
"pf - trigger a page fault\r\n"
|
||||
@@ -52,6 +53,15 @@ void pedicel_main(void* arg)
|
||||
continue;
|
||||
}
|
||||
|
||||
if (strncmp(input_buf, "", 1) == 0) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (strncmp(input_buf, "clear", 5) == 0) {
|
||||
printf("\x1b[2J\x1b[H");
|
||||
continue;
|
||||
}
|
||||
|
||||
if (strncmp(input_buf, "panic", 5) == 0) {
|
||||
panic(NULL, "test panic");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user