Changeset 68 for trunk/kernel/kern/rpc.c


Ignore:
Timestamp:
Jun 27, 2017, 10:24:13 AM (7 years ago)
Author:
alain
Message:

Fix bug in kernel_init, and reduce size of remote_fifo.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/kern/rpc.c

    r23 r68  
    12491249    reg_t      sr_save;
    12501250
    1251 printk("\n@@@ coucou 0\n");
    1252 
    12531251    // get client CPU and cluster coordinates
    12541252    cxy_t      client_cxy = local_cxy;   
     
    12671265    {
    12681266        error = remote_fifo_put_item( XPTR( server_cxy , &rf->fifo ),
    1269                                       (void *)&xp,
    1270                                       sizeof(xptr_t),
     1267                                      (uint64_t *)&xp,
    12711268                                      &first );
    12721269
     
    12801277    while( error );
    12811278 
    1282 printk("\n@@@ coucou 1\n");
    1283 
    12841279    rpc_dmsg("\n[INFO] %s on core %d in cluster %x sent RPC %p to cluster %x\n",
    12851280              __FUNCTION__ , client_lid , client_cxy , rpc , server_cxy );
     
    13021297        }
    13031298
    1304 printk("\n@@@ coucou 2\n");
    1305 
    13061299        // activate preemption to allow incoming RPC and avoid deadlock
    13071300        if( this->type == THREAD_RPC ) hal_enable_irq( &sr_save );
     
    13121305        if( rpc->response == 0 ) break;
    13131306    }
    1314 
    1315 printk("\n@@@ coucou 3\n");
    13161307
    13171308    // restore preemption
     
    13561347    {
    13571348            error = local_fifo_get_item( &rpc_fifo->fifo,
    1358                                      &xp,
    1359                                      sizeof(xptr_t) );
     1349                                     (uint64_t *)&xp );
    13601350
    13611351                if ( error == 0 )  // One RPC request successfully extracted from RPC_FIFO
Note: See TracChangeset for help on using the changeset viewer.