Add m68k support (from Debian bug report #172269)

Original commit message from CVS:
Add m68k support (from Debian bug report #172269)
This commit is contained in:
David Schleef 2003-08-07 23:28:53 +00:00
parent 5c2d6b2f43
commit 370c665fbd
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. */