add: kpanic

This commit is contained in:
2024-09-22 09:54:56 +02:00
parent 283f073124
commit 2728346711
11 changed files with 58 additions and 50 deletions

View File

@ -32,10 +32,5 @@ void kernel_main(void)
kprintf(KERN_NOTICE "KERN_NOTICE\n");
kprintf(KERN_INFO "KERN_INFO\n");
kprintf(KERN_DEBUG "KERN_DEBUG\n");
char *str = kalloc(10);
kfree(str);
str = kalloc(10);
strcpy(str, "Hello world\n");
kprintf("%s", str);
shell_init();
}