diff src/proc.c @ 37:fb3e5a2f76c1

fix
author mir3636
date Fri, 22 Feb 2019 22:36:17 +0900
parents d4e5846ddb48
children
line wrap: on
line diff
--- a/src/proc.c	Fri Feb 22 22:15:33 2019 +0900
+++ b/src/proc.c	Fri Feb 22 22:36:17 2019 +0900
@@ -539,12 +539,13 @@
     }
 
     release(&ptable.lock);
-    goto next();
+    goto proc->cbc_next();
 }
 
-__code cbc_wakeup(void *chan) 
+__code cbc_wakeup(void *chan, __code(*next1)()) 
 {
     acquire(&ptable.lock);
+    proc->cbc_next = next1;
     cbc_wakeup1(chan);
 }