(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
|
@ -129,26 +129,7 @@ lwpReschedule(void)
|
|||
BOUNDS_CHECKING_OFF;
|
||||
#endif
|
||||
|
||||
#if defined(hpc)
|
||||
{
|
||||
int endpoint;
|
||||
|
||||
endpoint = &endpoint;
|
||||
if (initcontext == NULL || endpoint < startpoint) {
|
||||
i = lwpSave(LwpCurrent->context);
|
||||
} else {
|
||||
LwpCurrent->size = endpoint - startpoint;
|
||||
LwpCurrent->sbtm = realloc(LwpCurrent->sbtm, LwpCurrent->size);
|
||||
memcpy(LwpCurrent->sbtm, startpoint, LwpCurrent->size);
|
||||
if (i = lwpSave(LwpCurrent->context)) {
|
||||
memcpy(startpoint, LwpCurrent->sbtm, LwpCurrent->size);
|
||||
i = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
#else
|
||||
i = lwpSave(LwpCurrent->context);
|
||||
#endif
|
||||
#ifdef BOUNDS_CHECK
|
||||
BOUNDS_CHECKING_ON;
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue