プロセス1実行編⑥(システムコール) void trap(struct trapframe *tf) (Xv6を読む~OSコードリーディング~)

前回 jupiteroak.hatenablog.com トップページ jupiteroak.hatenablog.com trap.c(一部抜粋) https://github.com/mit-pdos/xv6-public/blob/master/trap.c#L36 void trap(struct trapframe *tf) { if(tf->trapno == T_SYSCALL){ if(myproc()->killed) exit(); myproc()->tf = tf; syscall(); if(myproc()->killed) exit();…