Skip to content

Commit

Permalink
add support for debian sparc and openbsd5-sparc64
Browse files Browse the repository at this point in the history
make slp_platformselect.h choose switch_sparc_sun_gcc.h on the above
platforms. Removed include of sys/trap.h and defined ST_FLUSH_WINDOWS
to be 3 in switch_sparc_sun_gcc.h.
  • Loading branch information
unixtool1192 authored and schmir committed May 4, 2012
1 parent c5502fb commit 619ab91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion platform/switch_sparc_sun_gcc.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@

#ifdef SLP_EVAL

#include <sys/trap.h>

#define STACK_MAGIC 0
#define ST_FLUSH_WINDOWS 3

static int
slp_switch(void)
Expand Down
2 changes: 1 addition & 1 deletion slp_platformselect.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include "platform/switch_ppc_macosx.h" /* Apple MacOS X on PowerPC */
#elif defined(__GNUC__) && defined(_ARCH_PPC) && defined(_AIX)
#include "platform/switch_ppc_aix.h" /* gcc on AIX/PowerPC */
#elif defined(__GNUC__) && defined(sparc) && defined(sun)
#elif defined(__GNUC__) && defined(sparc)
#include "platform/switch_sparc_sun_gcc.h" /* SunOS sparc with gcc */
#elif defined(__SUNPRO_C) && defined(sparc) && defined(sun)
#include "platform/switch_sparc_sun_gcc.h" /* SunStudio on amd64 */
Expand Down

0 comments on commit 619ab91

Please sign in to comment.