Renesas Stub Generator V.1.00 Información técnica Pagina 115

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 144
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 114
Section 8 Application Interface
Rev. 1.01 Mar. 17, 2008 Page 103 of 128
REJ10J1822-0101
Example of implementation (for the HI7200/MP)
#define MAXTSKID 10 /* Maximum task ID */
static INT32 retval[MAXTSKID+1]; /* Array to hold the return */
/* value in the context */
/* [0]: Non-task context */
/* [1] to [MAXTSKID]: Task ID */
INT32 *rpc_retval_adr(void)
{
INT32 *retval_adr;
ID myid;
if(sns_ctx() == TRUE)
{
/* In a non-task context */
retval_adr = retval;
}
else
{
/* In a task context */
get_tid(%myid);
retval_adr = &retval[GET_LOCALID(myid)];
}
return retval_adr;
}
Vista de pagina 114
1 2 ... 110 111 112 113 114 115 116 117 118 119 120 ... 143 144

Comentarios a estos manuales

Sin comentarios