|
PKUOS - Pintos
Pintos source browser for PKU Operating System course
|

Go to the source code of this file.
Data Structures | |
| struct | switch_threads_frame |
| switch_thread()'s stack frame. More... | |
| struct | switch_entry_frame |
| Stack frame for switch_entry(). More... | |
Macros | |
| #define | SWITCH_CUR 20 |
| Offsets used by switch.S. More... | |
| #define | SWITCH_NEXT 24 |
| threads/switch.h More... | |
Functions | |
| 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 switch_threads(), returning CUR in NEXT's context. More... | |
| void | switch_entry (void) |
| void | switch_thunk (void) |
| Pops the CUR and NEXT arguments off the stack, for use in initializing threads. More... | |
| #define SWITCH_NEXT 24 |
| void switch_entry | ( | void | ) |
Switches from CUR, which must be the running thread, to NEXT, which must also be running switch_threads(), returning CUR in NEXT's context.
Referenced by schedule().

| void switch_thunk | ( | void | ) |
Pops the CUR and NEXT arguments off the stack, for use in initializing threads.