1 #ifndef GST_HGUARD_GSTI386_H
2 #define GST_HGUARD_GSTI386_H
4 /* Hmm - does this work, or do the braces cause other stack manipulation?
7 #define GET_SP(target) \
8 __asm__("movl %%esp, %0" : "=m"(target) : : "esp", "ebp");
10 #define SET_SP(source) \
11 __asm__("movl %0, %%esp\n" : "=m"(thread->sp));
13 #define JUMP(target) \
14 __asm__("jmp " SYMBOL_NAME_STR(cothread_stub))
16 #endif /* GST_HGUARD_GSTI386_H */