]> Devi Nivas Git - cs3210-lab0.git/commitdiff
longjmp -> swtch in comments
authorrtm <rtm>
Thu, 30 Aug 2007 17:39:56 +0000 (17:39 +0000)
committerrtm <rtm>
Thu, 30 Aug 2007 17:39:56 +0000 (17:39 +0000)
proc.c

diff --git a/proc.c b/proc.c
index 6803982a7b23d29bb93dcec43c3751480af52d70..1c705e9cc1b642d41a4e6eda32439f58aeed07c3 100644 (file)
--- a/proc.c
+++ b/proc.c
@@ -181,9 +181,9 @@ userinit(void)
 // Each CPU calls scheduler() after setting itself up.
 // Scheduler never returns.  It loops, doing:
 //  - choose a process to run
-//  - longjmp to start running that process
-//  - eventually that process transfers control back
-//      via longjmp back to the scheduler.
+//  - swtch to start running that process
+//  - eventually that process transfers control
+//      via swtch back to the scheduler.
 void
 scheduler(void)
 {
@@ -243,7 +243,7 @@ yield(void)
 }
 
 // A fork child's very first scheduling by scheduler()
-// will longjmp here.  "Return" to user space.
+// will swtch here.  "Return" to user space.
 void
 forkret(void)
 {