X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fthreads%2Fswitch.h;h=8a2974fcd999bafde09a9e46bfc274ad6dbde4dd;hb=44d0fa6a2b24a84e5eb0d54959ed91c1d4f15343;hp=c9ae4ab8b108bbd2b9165058f36b13dfd0319d6a;hpb=987024569c1e5e9468238849dd79ec8d386352e6;p=pintos-anon diff --git a/src/threads/switch.h b/src/threads/switch.h index c9ae4ab..8a2974f 100644 --- a/src/threads/switch.h +++ b/src/threads/switch.h @@ -3,7 +3,7 @@ #ifndef __ASSEMBLER__ /* switch_thread()'s stack frame. */ -struct switch_frame +struct switch_threads_frame { uint32_t ebx; /* 0: Saved %ebx. */ uint32_t ebp; /* 4: Saved %ebp. */ @@ -19,11 +19,13 @@ struct switch_frame NEXT's context. */ struct thread *switch_threads (struct thread *cur, struct thread *next); -struct switch_thunk_frame +struct switch_entry_frame { void (*eip) (void); }; +void switch_entry (void); + /* Pops the CUR and NEXT arguments off the stack, for use in initializing threads. */ void switch_thunk (void);