ciao a tutti

ho il seguente problema nell'accedere alla struttura proc_state sotto definita:

codice:
typedef unsigned int U32;

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 */
	struct state_t  *proc_state;		/* processor state */
} tcb_t;

#define reg_a0  gpr[3]

unsigned int cause;
tcb_t *CurrentThread;
cause=CurrentThread.proc_state.reg_a0;  //anche cause=CurrentThread->proc_state.reg_a0; da lo stesso errore
mi da il seguente errore:

exceptions.c:53: error: request for member `proc_state' in something not a structure or union


qualcuno sa dove sbaglio????

grazie in anticipo