Skip to content
Snippets Groups Projects
Commit 66982e0f authored by André Santos's avatar André Santos
Browse files

[project @ 1997-07-07 17:21:23 by andre]

RS6000 prof/conc patches
parent 1119f461
No related merge requests found
......@@ -576,6 +576,13 @@ gets whatever it's after.
#define WRAPPER_NAME(f) /* nothing */
#define SET_RETADDR(loc) \
__asm__ volatile ( \
"mflr 0\n" \
"\tst 0,%0" \
:"=m" (loc) :: "0");
/* __asm__ volatile ("st %%r0, %0" : "=m" ((void *)(loc))); */
#define WRAPPER_SETUP(f,ignore1,ignore2) SaveAllStgContext();
/* we have to make sure the STG registers are restored.
......
......@@ -44,12 +44,20 @@ void _stgAssert PROTO((char *, unsigned int));
#ifdef nextstep3_TARGET_OS
#define _NEXT_SOURCE
#endif
#ifdef aix_TARGET_OS
/* for fd_set */
#include <sys/select.h>
#endif
#ifdef NON_POSIX_SOURCE
#undef _POSIX_SOURCE
#undef _POSIX_C_SOURCE
#else
# ifndef aix_TARGET_OS
/* already defined on aix */
#define _POSIX_SOURCE 1
# endif
#ifndef irix_TARGET_OS
#define _POSIX_C_SOURCE 199301L
#else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment