projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Comments.
[pintos-anon]
/
src
/
threads
/
switch.h
diff --git
a/src/threads/switch.h
b/src/threads/switch.h
index c9ae4ab8b108bbd2b9165058f36b13dfd0319d6a..07b805e963d67f642f26e714d91462ec43389a83 100644
(file)
--- a/
src/threads/switch.h
+++ b/
src/threads/switch.h
@@
-1,9
+1,9
@@
-#ifndef
HEADER
_SWITCH_H
-#define
HEADER_SWITCH_H 1
+#ifndef
THREADS
_SWITCH_H
+#define
THREADS_SWITCH_H
#ifndef __ASSEMBLER__
/* switch_thread()'s stack frame. */
#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. */
{
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);
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 (*eip) (void);
};
+void switch_entry (void);
+
/* Pops the CUR and NEXT arguments off the stack, for use in
initializing threads. */
void switch_thunk (void);
/* Pops the CUR and NEXT arguments off the stack, for use in
initializing threads. */
void switch_thunk (void);
@@
-33,4
+35,4
@@
void switch_thunk (void);
#define SWITCH_CUR 20
#define SWITCH_NEXT 24
#define SWITCH_CUR 20
#define SWITCH_NEXT 24
-#endif /* switch.h */
+#endif /*
threads/
switch.h */