From 8139713c46aa63abb65d53fc237a21ffe91aa0bb Mon Sep 17 00:00:00 2001 From: rsc Date: Fri, 10 Aug 2007 17:19:15 +0000 Subject: add note --- trap.c | 1 + 1 file changed, 1 insertion(+) (limited to 'trap.c') 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(); } -- cgit v1.2.3