parisc-linux-lwp-updates-20011025

update parisc lwp foo
This commit is contained in:
Nathan Neulinger 2001-10-26 04:50:06 +00:00 committed by Derrick Brashear
parent 2f4ec2cfaa
commit 638d0e7c56
2 changed files with 5 additions and 3 deletions

View File

@ -350,7 +350,7 @@ int LWP_CreateProcess(ep, stacksize, priority, parm, name, pid)
#ifdef __hp9000s800 #ifdef __hp9000s800
savecontext(Create_Process_Part2, &temp2->context, stackptr+MINFRAME); savecontext(Create_Process_Part2, &temp2->context, stackptr+MINFRAME);
#else #else
#if defined(AFS_SGI62_ENV) || defined(AFS_DARWIN_ENV) || defined(AFS_FBSD_ENV) #if defined(AFS_SGI62_ENV) || defined(AFS_DARWIN_ENV) || defined(AFS_FBSD_ENV) || defined(AFS_PARISC_LINUX24_ENV)
/* Need to have the sp on an 8-byte boundary for storing doubles. */ /* Need to have the sp on an 8-byte boundary for storing doubles. */
savecontext(Create_Process_Part2, &temp2->context, savecontext(Create_Process_Part2, &temp2->context,
stackptr+stacksize-16); /* 16 = 2 * jmp_buf_type*/ stackptr+stacksize-16); /* 16 = 2 * jmp_buf_type*/
@ -492,7 +492,7 @@ int LWP_DestroyProcess(pid) /* destroy a lightweight process */
savecontext(Dispatcher, &(temp -> context), savecontext(Dispatcher, &(temp -> context),
&(LWPANCHOR.dsptchstack[MINFRAME])); &(LWPANCHOR.dsptchstack[MINFRAME]));
#else #else
#if defined(AFS_SGI62_ENV) || defined(AFS_DARWIN_ENV) || defined(AFS_FBSD_ENV) #if defined(AFS_SGI62_ENV) || defined(AFS_DARWIN_ENV) || defined(AFS_FBSD_ENV) || defined(AFS_PARISC_LINUX24_ENV)
savecontext(Dispatcher, &(temp -> context), savecontext(Dispatcher, &(temp -> context),
&(LWPANCHOR.dsptchstack[(sizeof LWPANCHOR.dsptchstack)-8])); &(LWPANCHOR.dsptchstack[(sizeof LWPANCHOR.dsptchstack)-8]));
#else #else

View File

@ -109,7 +109,9 @@ struct lwp_context *savearea;
#define LWP_SP 8 #define LWP_SP 8
#define LWP_FP 7 #define LWP_FP 7
#elif defined(AFS_PARISC_LINUX24_ENV) #elif defined(AFS_PARISC_LINUX24_ENV)
#define LWP_SP 19 #define LWP_SP 19*2
/* really 19 when structure is double, but requires too many changes
below to make a double work */
#else #else
#error Unsupported linux LWP system type. #error Unsupported linux LWP system type.
#endif #endif