Ignore:
Timestamp:
Aug 7, 2012, 6:37:49 PM (12 years ago)
Author:
alain
Message:

Introducing a new release where all initialisation
is done in the boot code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/libs/mwmr_channel.c

    r178 r189  
    3333#include <mwmr_channel.h>
    3434#include <stdio.h>
    35 #include <common.h>
    3635
    3736//////////////////////////////////////////////////////////////////////////////
     
    7473// after a random delay.
    7574//////////////////////////////////////////////////////////////////////////////
    76 void mwmr_write( mwmr_channel_t*            mwmr,
    77                  const unsigned int*    buffer,
    78                  unsigned int               nitems )
     75void mwmr_write( mwmr_channel_t*        mwmr,
     76                 unsigned int*          buffer,
     77                 unsigned int           nitems )
    7978{
    8079    unsigned int        x;
     
    8685    unsigned int    ptw;        // channel ptw
    8786
    88     if(nitems == 0)
    89         return;
    90 
    91     assert(buffer && "mwmr write: Empty buffer");
     87    if(nitems == 0) return;
     88
     89    // address virtuelle 0 is illegal...
     90    assert(buffer && "mwmr read: Empty buffer");
    9291
    9392    while(1)
     
    163162    unsigned int    ptr;        // channel ptw
    164163
    165     if(nitems == 0)
    166         return;
    167 
     164    if(nitems == 0) return;
     165
     166    // address virtuelle 0 is illegal...
    168167    assert(buffer && "mwmr read: Empty buffer");
    169168
Note: See TracChangeset for help on using the changeset viewer.