You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Argument Passing Every user program will page fault immediately until argument passing is implemented.
User memory access (see section 5.1.5 Accessing User Memory). All system calls need to read user memory. Few system calls need to write to user memory.
System call infrastructure (see section 5.3.4 System Calls). Implement enough code to read the system call number from the user stack and dispatch to a handler based on it.
The exit system call. Every user program that finishes in the normal way calls exit. Even a program that returns from main() calls exit indirectly (see _start() in "lib/user/entry.c").
The write system call for writing to fd 1, the system console. All of our test programs write to the console (the user process version of printf() is implemented this way), so they will all malfunction until write is available.
For now, change process_wait() to an infinite loop (one that waits forever). The provided implementation returns immediately, so Pintos will power off before any processes actually get to run. You will eventually need to provide a correct implementation.
The text was updated successfully, but these errors were encountered:
Process termination messages. Whenever a user process terminates, because it called exit or for any other reason, print the process's name and exit code, formatted as if printed by printf ("%s:exit(%d)\n", ...);
The text was updated successfully, but these errors were encountered: