mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-06-26 18:00:49 +00:00
Original commit message from CVS: Begun to add support for non i386 architectures, with the help of Chris Emerson. Added bits to configure to figure out architecture, and added some alternatives for PPC. Should cause no problems on i386, but I'll check after this commit, but doesn't yet work on PPC by a fair way...
21 lines
428 B
C
21 lines
428 B
C
#ifndef GST_HGUARD_GSTPPC_H
|
|
#define GST_HGUARD_GSTPPC_H
|
|
|
|
/* Hmm - does this work, or do the braces cause other stack manipulation?
|
|
* XXX
|
|
*/
|
|
#define GET_SP(target) { \
|
|
register unsigned long r1 __asm__("r1"); \
|
|
target = r1; \
|
|
}
|
|
|
|
#define SET_SP(source) { \
|
|
register unsigned long r1 __asm__("r1"); \
|
|
r1 = source; \
|
|
}
|
|
|
|
#define JUMP(target) \
|
|
__asm__("b " SYMBOL_NAME_STR(cothread_stub))
|
|
|
|
#endif /* GST_HGUARD_GSTPPC_H */
|