mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
Added HP-PA for the heck of it. Totally untested, of course.
Original commit message from CVS: Added HP-PA for the heck of it. Totally untested, of course.
This commit is contained in:
parent
1aff968e49
commit
b1ccfa05fa
2 changed files with 18 additions and 0 deletions
|
@ -141,6 +141,8 @@ case "x${target_cpu}" in
|
||||||
AC_DEFINE(HAVE_CPU_SPARC, 1, [Define if the target CPU is a PPC]) ;;
|
AC_DEFINE(HAVE_CPU_SPARC, 1, [Define if the target CPU is a PPC]) ;;
|
||||||
xmips*) HAVE_CPU_MIPS=yes
|
xmips*) HAVE_CPU_MIPS=yes
|
||||||
AC_DEFINE(HAVE_CPU_MIPS, 1, [Define if the target CPU is a MIPS]) ;;
|
AC_DEFINE(HAVE_CPU_MIPS, 1, [Define if the target CPU is a MIPS]) ;;
|
||||||
|
xhppa*) HAVE_CPU_HPPA=yes
|
||||||
|
AC_DEFINE(HAVE_CPU_HPPA, 1, [Define if the target CPU is a HPPA]) ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
dnl Determine endianness
|
dnl Determine endianness
|
||||||
|
|
|
@ -144,6 +144,22 @@ struct minimal_stackframe {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/***** HP-PA *****/
|
||||||
|
#elif defined(HAVE_CPU_HPPA)
|
||||||
|
|
||||||
|
#define GST_ARCH_SET_SP(stackpointer) \
|
||||||
|
__asm__("copy %0,%%sp\n\t" : : "r"(stackpointer));
|
||||||
|
|
||||||
|
#define GST_ARCH_CALL(target) \
|
||||||
|
__asm__("copy $1,%%r22\n\t" // set call address \
|
||||||
|
".CALL\n\t" // call pseudo insn (why?) \
|
||||||
|
"bl $$dyncall,%%r31\n\t" : : "r"(target));
|
||||||
|
|
||||||
|
// assume stackframe is 16 bytes
|
||||||
|
#define GST_ARCH_SETUP_STACK(sp) sp -= 4
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#else
|
#else
|
||||||
#error 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
|
||||||
|
|
Loading…
Reference in a new issue