Begun to add support for non i386 architectures, with the help of Chris
[platform/upstream/gstreamer.git] / gst / gsti386.h
1 #ifndef GST_HGUARD_GSTI386_H
2 #define GST_HGUARD_GSTI386_H
3
4 /* Hmm - does this work, or do the braces cause other stack manipulation?
5  * XXX
6  */
7 #define GET_SP(target) \
8   __asm__("movl %%esp, %0" : "=m"(target) : : "esp", "ebp");
9
10 #define SET_SP(source) \
11   __asm__("movl %0, %%esp\n" : "=m"(thread->sp));
12
13 #define JUMP(target) \
14     __asm__("jmp " SYMBOL_NAME_STR(cothread_stub))
15
16 #endif /* GST_HGUARD_GSTI386_H */