Changed to work with vxWorks 5.1 and GCC 2.2.3.
This commit is contained in:
@@ -53,6 +53,7 @@ MACRO *pMac;
|
||||
seqMacEval(pInStr, pOutStr, maxChar, macTbl)
|
||||
char *pInStr;
|
||||
char *pOutStr;
|
||||
int maxChar;
|
||||
MACRO *macTbl;
|
||||
{
|
||||
char *pMacVal, *pTmp;
|
||||
@@ -100,7 +101,8 @@ MACRO *macTbl;
|
||||
printf("OutStr=%s\n", pTmp);
|
||||
#endif
|
||||
}
|
||||
*pOutStr == 0;
|
||||
/* lrd - was: *pOutStr == 0; */
|
||||
*pOutStr = 0;
|
||||
}
|
||||
/*
|
||||
* seqMacValGet - given macro name, return pointer to its value.
|
||||
|
||||
@@ -157,7 +157,7 @@ int stack_size; /* optional stack size (bytes) */
|
||||
|
||||
/* Spawn the initial sequencer task */
|
||||
tid = taskSpawn(ptask_name, SPAWN_PRIORITY, SPAWN_OPTIONS,
|
||||
stack_size, sequencer, pSP, stack_size, ptask_name);
|
||||
stack_size, sequencer, (int)pSP, stack_size, (int)ptask_name,0,0,0,0,0,0,0);
|
||||
|
||||
seq_log(pSP, "Spawning state program \"%s\", task name = \"%s\"\n",
|
||||
pSP->name, ptask_name);
|
||||
|
||||
@@ -83,8 +83,10 @@ char *ptask_name; /* Parent task name */
|
||||
SPAWN_PRIORITY+pSS->task_priority, /* priority */
|
||||
SPAWN_OPTIONS, /* task options */
|
||||
stack_size, /* stack size */
|
||||
ss_entry, /* entry point */
|
||||
pSP, pSS); /* pass 2 parameters */
|
||||
(int)ss_entry, /* entry point */
|
||||
(int)pSP,
|
||||
(int)pSS, /* pass 2 parameters */
|
||||
0,0,0,0,0,0,0,0);
|
||||
|
||||
seq_log(pSP, "Spawning task %d: \"%s\"\n", task_id, task_name);
|
||||
}
|
||||
@@ -308,7 +310,7 @@ TCBX *pTcbX; /* ptr to TCB of task to be deleted */
|
||||
#endif
|
||||
pSP = seqFindProg(tid);
|
||||
if (pSP == NULL)
|
||||
return; /* not a state program task */
|
||||
return(0); /* not a state program task */
|
||||
|
||||
logMsg("Delete %s: pSP=%d=0x%x, tid=%d\n",
|
||||
pSP->name, pSP, pSP, tid);
|
||||
|
||||
Reference in New Issue
Block a user