mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 05:56:31 +00:00
Fix powerpc asm. Fixes #122952
Original commit message from CVS: Fix powerpc asm. Fixes #122952
This commit is contained in:
parent
6e1a58e9bd
commit
5db318b09a
1 changed files with 3 additions and 4 deletions
|
@ -45,13 +45,12 @@
|
||||||
/***** PowerPC *****/
|
/***** PowerPC *****/
|
||||||
#elif defined (HAVE_CPU_PPC) && defined(__GNUC__)
|
#elif defined (HAVE_CPU_PPC) && defined(__GNUC__)
|
||||||
|
|
||||||
/* should bring this in line with others and use an "r" */
|
|
||||||
#define GST_ARCH_SET_SP(stackpointer) \
|
#define GST_ARCH_SET_SP(stackpointer) \
|
||||||
__asm__("lwz 1,%0" : : "m"(stackpointer))
|
__asm__("lwz %%r1,%0" : : "m"(stackpointer))
|
||||||
|
|
||||||
#define GST_ARCH_CALL(target) \
|
#define GST_ARCH_CALL(target) \
|
||||||
__asm__( "mr 0,%0\n\t" \
|
__asm__( "mr %%r0,%0\n\t" \
|
||||||
"mtlr 0\n\t" \
|
"mtlr %%r0\n\t" \
|
||||||
"blrl" : : "r"(target) );
|
"blrl" : : "r"(target) );
|
||||||
|
|
||||||
struct minimal_ppc_stackframe {
|
struct minimal_ppc_stackframe {
|
||||||
|
|
Loading…
Reference in a new issue