Changeset 189 for soft/giet_vm/libs/mwmr_channel.c
- Timestamp:
- Aug 7, 2012, 6:37:49 PM (13 years ago)
- File:
-
- 1 edited
-
soft/giet_vm/libs/mwmr_channel.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/libs/mwmr_channel.c
r178 r189 33 33 #include <mwmr_channel.h> 34 34 #include <stdio.h> 35 #include <common.h>36 35 37 36 ////////////////////////////////////////////////////////////////////////////// … … 74 73 // after a random delay. 75 74 ////////////////////////////////////////////////////////////////////////////// 76 void mwmr_write( mwmr_channel_t* mwmr,77 const unsigned int*buffer,78 unsigned int nitems )75 void mwmr_write( mwmr_channel_t* mwmr, 76 unsigned int* buffer, 77 unsigned int nitems ) 79 78 { 80 79 unsigned int x; … … 86 85 unsigned int ptw; // channel ptw 87 86 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"); 92 91 93 92 while(1) … … 163 162 unsigned int ptr; // channel ptw 164 163 165 if(nitems == 0) 166 return; 167 164 if(nitems == 0) return; 165 166 // address virtuelle 0 is illegal... 168 167 assert(buffer && "mwmr read: Empty buffer"); 169 168
Note: See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/trac/giet-vm/chrome/site/your_project_logo.png)