summaryrefslogtreecommitdiff
path: root/trap.c
diff options
context:
space:
mode:
Diffstat (limited to 'trap.c')
-rw-r--r--trap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/trap.c b/trap.c
index ed66e99..1faa49e 100644
--- a/trap.c
+++ b/trap.c
@@ -57,6 +57,7 @@ trap(struct trapframe *tf)
proc_exit();
// Force process to give up CPU and let others run.
+ // If locks were held with interrupts on, would need to check nlock.
if(cp->state == RUNNING)
yield();
}