mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 19:21:06 +00:00
59030bfc59
Original commit message from CVS: Patch from Chris Emerson for PPC. cothreads stuff was causing segfaults, because the stack needs to be initialised with a particular structure on PPC, unlike x86 where it simply has items pushed or popped. Added Chris to AUTHORS, for his trouble.
15 lines
370 B
C
15 lines
370 B
C
#ifndef GST_HGUARD_GSTI386_H
|
|
#define GST_HGUARD_GSTI386_H
|
|
|
|
#define GET_SP(target) \
|
|
__asm__("movl %%esp, %0" : "=m"(target) : : "esp", "ebp");
|
|
|
|
#define SET_SP(source) \
|
|
__asm__("movl %0, %%esp\n" : "=m"(thread->sp));
|
|
|
|
#define JUMP(target) \
|
|
__asm__("jmp " SYMBOL_NAME_STR(cothread_stub))
|
|
|
|
#define SETUP_STACK(sp) do ; while(0)
|
|
|
|
#endif /* GST_HGUARD_GSTI386_H */
|