Ignore:
Timestamp:
Jul 15, 2015, 6:15:52 PM (9 years ago)
Author:
bellefin
Message:

Change the syscalls related to the NIC and the CMA
1) In a CHBUF, every buffer is linked to a variable called “status” which is equal to 1 if the buffer is full or 0 if it is empty. The status occupies 64 bytes to simplify cache coherence
2) The CHBUF descriptor now contains the physical addresses of the buffer and its status. It only occupies 64 bits.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_libs/stdio.c

    r588 r614  
    698698
    699699///////////////////////////////////////////
    700 void giet_fbf_cma_start( void *       buf0,
    701                          void *       buf1,
    702                          unsigned int length )
     700void giet_fbf_cma_init_buf( void* buf0_vbase,
     701                            void* buf1_vbase,
     702                            void* sts0_vaddr,
     703                            void* sts1_vaddr )
     704{
     705    if ( sys_call( SYSCALL_FBF_CMA_INIT_BUF,
     706                   (unsigned int)buf0_vbase,
     707                   (unsigned int)buf1_vbase,
     708                   (unsigned int)sts0_vaddr,
     709                   (unsigned int)sts1_vaddr ) )   giet_exit("error in giet_fbf_cma_init_buf()");
     710}
     711
     712///////////////////////////////////////////
     713void giet_fbf_cma_start( unsigned int length )
    703714{
    704715    if ( sys_call( SYSCALL_FBF_CMA_START,
    705                    (unsigned int)buf0,
    706                    (unsigned int)buf1,
    707                    length,
    708                    0 ) )   giet_exit("error in giet_fbf_cma_start()");
     716                   length,
     717                   0, 0, 0 ) )   giet_exit("error in giet_fbf_cma_start()");
    709718}
    710719
Note: See TracChangeset for help on using the changeset viewer.