Add some missing declarations to headers. Remove some redundant
declarations elsewhere. Change linkage of some functions to static.
This commit is contained in:
parent
e7811102a3
commit
4a3f0b8146
43 changed files with 72 additions and 169 deletions
|
@ -98,7 +98,6 @@ void
|
|||
lwpInitContext(volatile struct lwpProc *volatile newp, void *sp)
|
||||
{
|
||||
static jmp_buf *cpp;
|
||||
extern struct lwpProc *LwpCurrent;
|
||||
|
||||
if (!lwpSave(LwpCurrent->context)) {
|
||||
cpp = (jmp_buf *) & newp->context;
|
||||
|
@ -305,7 +304,6 @@ void
|
|||
lwpInitContext(struct lwpProc *newp, void *sp)
|
||||
{
|
||||
static jmp_buf *cpp;
|
||||
extern struct lwpProc *LwpCurrent;
|
||||
|
||||
memset(newp->context, 0, sizeof(newp->context));
|
||||
newp->context[0] = (int)sp;
|
||||
|
|
|
@ -36,11 +36,6 @@
|
|||
#include <bounds/unchecked.h>
|
||||
#endif
|
||||
|
||||
#ifdef hpc
|
||||
extern struct lwpProc *initcontext;
|
||||
extern int startpoint;
|
||||
#endif
|
||||
|
||||
struct lwpQueue LwpSchedQ[LWP_MAX_PRIO], LwpDeadQ;
|
||||
|
||||
struct lwpProc *LwpCurrent = NULL;
|
||||
|
|
|
@ -29,6 +29,11 @@
|
|||
/* more inefficient the context switch time */
|
||||
#define LCOUNT -1
|
||||
|
||||
#ifdef hpc
|
||||
extern struct lwpProc *initcontext;
|
||||
extern int startpoint;
|
||||
#endif
|
||||
|
||||
#ifdef hpux
|
||||
int lwpSave(jmp_buf);
|
||||
void lwpRestore(jmp_buf);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue