more UBsan

This commit is contained in:
2026-03-28 21:50:19 +01:00
parent 3cd38f654c
commit 65371077d9
8 changed files with 184 additions and 12 deletions
+10
View File
@@ -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");
}