blindly implemented exit system call

This commit is contained in:
2025-07-31 13:14:28 +03:00
parent b65dc62257
commit 7bc28c2331
5 changed files with 11 additions and 1 deletions

3
user.c
View File

@@ -18,7 +18,8 @@ int syscall(int sysno, int arg0, int arg1, int arg2) {
}
__attribute__((noreturn)) void exit(void) {
for(;;);
syscall(SYS_EXIT, 0, 0, 0);
for (;;); // just in case
}
void putchar(char ch) {