mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 16:26:39 +00:00
More work towards a powerPC port, and towards generic portability.
Original commit message from CVS: More work towards a powerPC port, and towards generic portability.
This commit is contained in:
parent
968b5acaa1
commit
11e8ef9074
6 changed files with 14 additions and 17 deletions
|
@ -12,7 +12,7 @@ if HAVE_CPU_I386
|
||||||
GSTARCH_SRCS = gstcpuid_i386.s
|
GSTARCH_SRCS = gstcpuid_i386.s
|
||||||
else
|
else
|
||||||
if HAVE_CPU_PPC
|
if HAVE_CPU_PPC
|
||||||
GSTARCH_SRCS = gstppc.c
|
GSTARCH_SRCS =
|
||||||
else
|
else
|
||||||
GSTARCH_SRCS =
|
GSTARCH_SRCS =
|
||||||
endif
|
endif
|
||||||
|
@ -55,6 +55,9 @@ libgstinclude_HEADERS = \
|
||||||
gstbufferpool.h \
|
gstbufferpool.h \
|
||||||
gstclock.h \
|
gstclock.h \
|
||||||
gstcpu.h \
|
gstcpu.h \
|
||||||
|
gstarch.h \
|
||||||
|
gsti386.h \
|
||||||
|
gstppc.h \
|
||||||
gstelement.h \
|
gstelement.h \
|
||||||
gstbin.h \
|
gstbin.h \
|
||||||
gstpipeline.h \
|
gstpipeline.h \
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
#ifdef HAVE_CPU_PPC
|
#ifdef HAVE_CPU_PPC
|
||||||
#include "gstppc.h"
|
#include "gstppc.h"
|
||||||
#else
|
#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
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ void gst_cpuid_i386(int,long *,long *,long *,long *);
|
||||||
#define gst_cpuid gst_cpuid_i386
|
#define gst_cpuid gst_cpuid_i386
|
||||||
|
|
||||||
#else
|
#else
|
||||||
#define gst_cpuid(o,a,b,c,d)
|
#define gst_cpuid(o,a,b,c,d) (void)(a);(void)(b);(void)(c);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void _gst_cpu_initialize(void)
|
void _gst_cpu_initialize(void)
|
||||||
|
|
15
gst/gstppc.h
15
gst/gstppc.h
|
@ -1,18 +1,13 @@
|
||||||
#ifndef GST_HGUARD_GSTPPC_H
|
#ifndef GST_HGUARD_GSTPPC_H
|
||||||
#define GST_HGUARD_GSTPPC_H
|
#define GST_HGUARD_GSTPPC_H
|
||||||
|
|
||||||
/* Hmm - does this work, or do the braces cause other stack manipulation?
|
/* FIXME: Hmm - does this work?
|
||||||
* XXX
|
|
||||||
*/
|
*/
|
||||||
#define GET_SP(target) { \
|
#define GET_SP(target) \
|
||||||
register unsigned long r1 __asm__("r1"); \
|
__asm__("stw 1,%0" : "=m"(target) : : "r1");
|
||||||
target = r1; \
|
|
||||||
}
|
|
||||||
|
|
||||||
#define SET_SP(source) { \
|
#define SET_SP(source) \
|
||||||
register unsigned long r1 __asm__("r1"); \
|
__asm__("lwz 1,%0" : "=m"(source))
|
||||||
r1 = source; \
|
|
||||||
}
|
|
||||||
|
|
||||||
#define JUMP(target) \
|
#define JUMP(target) \
|
||||||
__asm__("b " SYMBOL_NAME_STR(cothread_stub))
|
__asm__("b " SYMBOL_NAME_STR(cothread_stub))
|
||||||
|
|
|
@ -5,14 +5,11 @@ filter_LTLIBRARIES = libgstgetbits.la
|
||||||
if HAVE_CPU_I386
|
if HAVE_CPU_I386
|
||||||
GSTARCH_SRCS = gstgetbits_i386.s
|
GSTARCH_SRCS = gstgetbits_i386.s
|
||||||
else
|
else
|
||||||
if HAVE_CPU_PPC
|
|
||||||
GSTARCH_SRCS = gstgetbits_generic.c
|
GSTARCH_SRCS = gstgetbits_generic.c
|
||||||
else
|
|
||||||
GSTARCH_SRCS =
|
|
||||||
endif
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
libgstgetbits_la_SOURCES = gstgetbits.c gstgetbits_inl.h $(GSTARCH_SRCS)
|
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
|
libgstgetbitsincludedir = $(includedir)/gst/libs/gstgetbits
|
||||||
libgstgetbitsinclude_HEADERS = gstgetbits.h
|
libgstgetbitsinclude_HEADERS = gstgetbits.h
|
||||||
|
|
2
libs/getbits/gstgetbits_generic.c
Normal file
2
libs/getbits/gstgetbits_generic.c
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
|
||||||
|
#error Need an implementation of the functions in gstgetbits_i386.s
|
Loading…
Reference in a new issue