Patch to port to m68k. (Fixes #119393)

Original commit message from CVS:
Patch to port to m68k.  (Fixes #119393)
This commit is contained in:
David Schleef 2003-08-08 02:23:32 +00:00
parent 11e28c0146
commit 8beb7b33b0
2 changed files with 14 additions and 1 deletions

2
common

@ -1 +1 @@
Subproject commit 6b0a313b93535f0df7956a01405ddb63a3d76b5a
Subproject commit 6757dae2885c2c09ad6db243c73946ef387bb044

View file

@ -180,6 +180,19 @@ struct minimal_s390_stackframe {
((struct minimal_s390_stackframe *)sp)->back_chain = 0;
/***** M68K *****/
#elif defined(HAVE_CPU_M68K) && defined(__GNUC__)
/* From Matthias Urlichs <smurf@smurf.noris.de> */
#define GST_ARCH_SET_SP(stackpointer) \
__asm__( "move.l %0, %%sp\n" : : "r" (stackpointer))
#define GST_ARCH_CALL(target) \
__asm__( "jbsr (%0)" : : "r" (target))
#define GST_ARCH_SETUP_STACK(sp) sp -= 4
#elif defined(HAVE_MAKECONTEXT)
/* If we have makecontext(), we'll be using that. */