ciao a tutti
codice:
typedef struct {
U32 entry_hi;
U32 cause;
U32 status;
U32 pc_epc; /* pc in the new area, epc in the old area */
U32 gpr[31];
U32 hi;
U32 lo;
} state_t;
typedef struct tcb_t { /* thread control block */
tid_t tid; /* thread identifier */
status_t status; /* thread's status */
state_t proc_state; /* processor state */
struct tcb_t *t_next, /* pointer to next entry in the thread queue */
*t_prev, /* pointer to next entry in the thread queue */
*inbox; /* threads waiting to send a message to this thread */
} tcb_t;
static state_t GetTState(tid_t tid)
{
tcb_t *tmp;
state_t stato;
if(tid == 255)
tid=CurrentThread->tid;
tmp=resolveTid(tid); /* questa funzione prende un tid e ritorna un puntatore al thread block tcb_t*/
if(tmp != NULL){
stato=tmp->proc_state;
return stato;
}
else killTcb(tid); /* termina il tcb_t corrispondente a tid*/
}
in fase di compilazione ho questo errore:
ssi.o(.text+0xd04): In function `GetTState':
: undefined reference to `memcpy'
ssi.o(.text+0xd2c): In function `GetTState':
: undefined reference to `memcpy'
io non faccio nessuna chiamata memcpy
qualcuno di cosa si tratta???