(lwpSave, lwpReschedule) [hpc]: Move machine-dependent code to arch.c,
where it belongs. Code looks fishy. Untested. (initcontext, startpoint): Internal linkage.
This commit is contained in:
parent
955fab9d86
commit
3a18d0b986
3 changed files with 25 additions and 27 deletions
|
@ -39,7 +39,10 @@ void lwpInitContext(volatile struct lwpProc * volatile, void *);
|
|||
#else
|
||||
void lwpInitContext(struct lwpProc *, void *);
|
||||
#endif
|
||||
#if (defined(hpux) && !defined(hpc)) || defined(AIX32) || defined(ALPHA)
|
||||
#if defined(hpc)
|
||||
int lwpSave(jmp_buf);
|
||||
#define lwpRestore(x) longjmp(x, 1)
|
||||
#elif defined(hpux) || defined(AIX32) || defined(ALPHA)
|
||||
int lwpSave(jmp_buf);
|
||||
void lwpRestore(jmp_buf);
|
||||
#elif defined(SUN4)
|
||||
|
@ -51,11 +54,6 @@ void lwpRestore(jmp_buf);
|
|||
#endif
|
||||
#endif /* !UCONTEXT */
|
||||
|
||||
#ifdef hpc
|
||||
extern struct lwpProc *initcontext;
|
||||
extern int startpoint;
|
||||
#endif
|
||||
|
||||
#ifdef AIX32
|
||||
/* AIX needs 12 extra bytes above the stack; we add it here */
|
||||
#define LWP_EXTRASTACK 3*sizeof(long)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue