GSTARCH_SRCS = gstcpuid_i386.s
else
if HAVE_CPU_PPC
-GSTARCH_SRCS = gstppc.c
+GSTARCH_SRCS =
else
GSTARCH_SRCS =
endif
gstbufferpool.h \
gstclock.h \
gstcpu.h \
+ gstarch.h \
+ gsti386.h \
+ gstppc.h \
gstelement.h \
gstbin.h \
gstpipeline.h \
#ifdef HAVE_CPU_PPC
#include "gstppc.h"
#else
-#warn Need to know about this architecture, or have a generic implementation
+#error Need to know about this architecture, or have a generic implementation
#endif
#endif
#define gst_cpuid gst_cpuid_i386
#else
-#define gst_cpuid(o,a,b,c,d)
+#define gst_cpuid(o,a,b,c,d) (void)(a);(void)(b);(void)(c);
#endif
void _gst_cpu_initialize(void)
#ifndef GST_HGUARD_GSTPPC_H
#define GST_HGUARD_GSTPPC_H
-/* Hmm - does this work, or do the braces cause other stack manipulation?
- * XXX
+/* FIXME: Hmm - does this work?
*/
-#define GET_SP(target) { \
- register unsigned long r1 __asm__("r1"); \
- target = r1; \
-}
+#define GET_SP(target) \
+ __asm__("stw 1,%0" : "=m"(target) : : "r1");
-#define SET_SP(source) { \
- register unsigned long r1 __asm__("r1"); \
- r1 = source; \
-}
+#define SET_SP(source) \
+ __asm__("lwz 1,%0" : "=m"(source))
#define JUMP(target) \
__asm__("b " SYMBOL_NAME_STR(cothread_stub))
if HAVE_CPU_I386
GSTARCH_SRCS = gstgetbits_i386.s
else
-if HAVE_CPU_PPC
GSTARCH_SRCS = gstgetbits_generic.c
-else
-GSTARCH_SRCS =
-endif
endif
libgstgetbits_la_SOURCES = gstgetbits.c gstgetbits_inl.h $(GSTARCH_SRCS)
+EXTRA_libgstgetbits_la_SOURCES = gstgetbits_i386.s gstgetbits_generic.c
libgstgetbitsincludedir = $(includedir)/gst/libs/gstgetbits
libgstgetbitsinclude_HEADERS = gstgetbits.h
--- /dev/null
+
+#error Need an implementation of the functions in gstgetbits_i386.s