Fix powerpc asm. Fixes #122952

Original commit message from CVS:

Fix powerpc asm.  Fixes #122952
This commit is contained in:
David Schleef 2003-09-22 21:47:57 +00:00
parent 6e1a58e9bd
commit 5db318b09a

View file

@ -45,13 +45,12 @@
/***** PowerPC *****/
#elif defined (HAVE_CPU_PPC) && defined(__GNUC__)
/* should bring this in line with others and use an "r" */
#define GST_ARCH_SET_SP(stackpointer) \
__asm__("lwz 1,%0" : : "m"(stackpointer))
__asm__("lwz %%r1,%0" : : "m"(stackpointer))
#define GST_ARCH_CALL(target) \
__asm__( "mr 0,%0\n\t" \
"mtlr 0\n\t" \
__asm__( "mr %%r0,%0\n\t" \
"mtlr %%r0\n\t" \
"blrl" : : "r"(target) );
struct minimal_ppc_stackframe {