]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/gstreamer0-10.git/commitdiff
Added HP-PA for the heck of it. Totally untested, of course.
authorErik Walthinsen <omega@temple-baptist.org>
Wed, 5 Sep 2001 21:50:43 +0000 (21:50 +0000)
committerErik Walthinsen <omega@temple-baptist.org>
Wed, 5 Sep 2001 21:50:43 +0000 (21:50 +0000)
Original commit message from CVS:
Added HP-PA for the heck of it.  Totally untested, of course.

configure.base
gst/gstarch.h

index 1720bd6ad075e08e77b98db731c0b975d87ca88b..c7e9dcf4be446b3e0278d6bd55f3232c687b638a 100644 (file)
@@ -141,6 +141,8 @@ case "x${target_cpu}" in
               AC_DEFINE(HAVE_CPU_SPARC, 1, [Define if the target CPU is a PPC]) ;;
   xmips*)     HAVE_CPU_MIPS=yes
               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
 
 dnl Determine endianness
index 7634819dc56376c200af5d26d17b594599f74977..82b1cc86388042c261581deb146162d306a7e147 100644 (file)
@@ -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
 #error Need to know about this architecture, or have a generic implementation
 #endif