Add read support for mips

This commit is contained in:
Lucas Schumacher
2025-04-14 18:01:31 -04:00
parent 8a01908b1c
commit 6a51f8851b
3 changed files with 15 additions and 5 deletions

View File

@@ -25,14 +25,12 @@ int main() {
if(pid == 0) return 0;
//TODO: wait on child to remove zombie process
#if defined(__x86_64__) || defined(__aarch64__)
// Test the read syscall
#define INPUT_BUFFER_LEN 4096
char input_buffer[INPUT_BUFFER_LEN] = {0};
write(STDIO, "Enter some text:", 16);
intptr_t n_read = read(STDIO, input_buffer, INPUT_BUFFER_LEN);
write(STDIO, input_buffer, n_read);
#endif
return 69;
}