From b190a933e6fc9048fbea90d626cffb0fb7ef21cc Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Sat, 2 Oct 2004 23:21:16 +0000 Subject: [PATCH] Fix comments. --- src/threads/switch.S | 2 +- src/threads/switch.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/threads/switch.S b/src/threads/switch.S index 5bb56b5..16c9518 100644 --- a/src/threads/switch.S +++ b/src/threads/switch.S @@ -3,7 +3,7 @@ #### struct thread *switch_threads (struct thread *cur, struct thread *next); #### #### Switches from CUR, which must be the running thread, to NEXT, -#### which must also be running thread_switch(), returning CUR in +#### which must also be running switch_threads(), returning CUR in #### NEXT's context. #### #### This function works by assuming that the thread we're switching diff --git a/src/threads/switch.h b/src/threads/switch.h index 084a794..d79af5d 100644 --- a/src/threads/switch.h +++ b/src/threads/switch.h @@ -10,12 +10,12 @@ struct switch_threads_frame uint32_t esi; /* 8: Saved %esi. */ uint32_t edi; /* 12: Saved %edi. */ void (*eip) (void); /* 16: Return address. */ - struct thread *cur; /* 20: thread_switch()'s CUR argument. */ - struct thread *next; /* 24: thread_switch()'s NEXT argument. */ + struct thread *cur; /* 20: switch_threads()'s CUR argument. */ + struct thread *next; /* 24: switch_threads()'s NEXT argument. */ }; /* Switches from CUR, which must be the running thread, to NEXT, - which must also be running thread_switch(), returning CUR in + which must also be running switch_threads(), returning CUR in NEXT's context. */ struct thread *switch_threads (struct thread *cur, struct thread *next); -- 2.30.2