gstreamer/gst/gstppc.h
Richard Boulton 238bbc23c8 Begun to add support for non i386 architectures, with the help of Chris
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...
2000-09-15 22:44:10 +00:00

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 */