summaryrefslogtreecommitdiff
path: root/trap.c
diff options
context:
space:
mode:
authorrsc <rsc>2007-08-10 17:19:15 +0000
committerrsc <rsc>2007-08-10 17:19:15 +0000
commit8139713c46aa63abb65d53fc237a21ffe91aa0bb (patch)
tree7e885c02a81bc3ea2a5ea04ae7fdf7a3834e3885 /trap.c
parent2715cd35921ee748154ebdce04ed84a1e543338f (diff)
downloadxv6-labs-8139713c46aa63abb65d53fc237a21ffe91aa0bb.tar.gz
xv6-labs-8139713c46aa63abb65d53fc237a21ffe91aa0bb.tar.bz2
xv6-labs-8139713c46aa63abb65d53fc237a21ffe91aa0bb.zip
add note
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();
}