Changeset 735 for soft/giet_vm/giet_libs/mwmr_channel.c
- Timestamp:
- Dec 3, 2015, 4:38:59 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_libs/mwmr_channel.c
r731 r735 11 11 #include "stdint.h" 12 12 #include "user_lock.h" 13 14 // macro to use a shared TTY 15 #define PRINTF(...) lock_acquire( &tty_lock ); \ 16 giet_tty_printf(__VA_ARGS__); \ 17 lock_release( &tty_lock ); 18 extern user_lock_t tty_lock; 13 19 14 20 ////////////////////////////////////// … … 251 257 #endif 252 258 253 uint32_t n;254 uint32_t spaces; // number of empty slots (in words)255 uint32_t nwords; // requested transfer length (in words)256 uint32_t depth; // channel depth (in words)257 uint32_t width; // channel width (in words)258 uint32_t sts; // channel sts259 uint32_t ptw; // channel ptw259 uint32_t n; 260 uint32_t spaces; // number of empty slots (in words) 261 uint32_t nwords; // requested transfer length (in words) 262 uint32_t depth; // channel depth (in words) 263 uint32_t width; // channel width (in words) 264 volatile uint32_t sts; // channel status 265 volatile uint32_t ptw; // channel ptw 260 266 261 267 if (items == 0) return; … … 292 298 293 299 lock_release( &mwmr->lock ); 300 294 301 return; 295 302 } … … 341 348 342 349 uint32_t n; 343 uint32_t nwords; // requested transfer length (in words)344 uint32_t depth; // channel depth (in words)345 uint32_t width; // channel width (in words)346 uint32_t sts; // channel sts347 uint32_t ptr; // channel ptr350 uint32_t nwords; // requested transfer length (in words) 351 uint32_t depth; // channel depth (in words) 352 uint32_t width; // channel width (in words) 353 volatile uint32_t sts; // channel status 354 volatile uint32_t ptr; // channel ptr 348 355 349 356 if (items == 0) return; … … 379 386 380 387 lock_release( &mwmr->lock ); 388 381 389 return; 382 390 }
Note: See TracChangeset
for help on using the changeset viewer.