sched: add kthread interface for system calls

This commit is contained in:
Michael Shaw 2025-02-09 20:56:25 -05:00
commit 89672d02f4
9 changed files with 169 additions and 140 deletions

View file

@ -36,13 +36,13 @@ void _start()
if (c[0] == '\n') {
write(fd, "attempting to fork\n", 19);
if (fork() == 0) {
pid_t pid = fork();
if (pid == 0) {
write(fd, "child\n", 6);
exit(0xCCCC);
exit(0);
} else {
write(fd, "parent\n", 7);
while(1);
}
}
}