46bbd72f3e
wakeup1() assumes you hold proc_table_lock sleep(chan, lock) provides atomic sleep-and-release to wait for condition ugly code in swtch/scheduler to implement new sleep fix lots of bugs in pipes, wait, and exit fix bugs if timer interrupt goes off in schedule() console locks per line, not per byte
12 lines
220 B
C
12 lines
220 B
C
#define SYS_fork 1
|
|
#define SYS_exit 2
|
|
#define SYS_wait 3
|
|
#define SYS_cons_putc 4
|
|
#define SYS_pipe 5
|
|
#define SYS_write 6
|
|
#define SYS_read 7
|
|
#define SYS_close 8
|
|
#define SYS_block 9
|
|
#define SYS_kill 10
|
|
#define SYS_panic 11
|