Permalink
Browse files

add support for debian sparc and openbsd5-sparc64

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...
1 parent c5502fb commit 619ab917e3ab47be7642ced21c8cfd8e8182844b @unixtool1192 unixtool1192 committed with schmir May 2, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 platform/switch_sparc_sun_gcc.h
  2. +1 −1 slp_platformselect.h
@@ -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)
@@ -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 */

0 comments on commit 619ab91

Please sign in to comment.