Ignore:
Timestamp:
Dec 3, 2015, 4:38:59 PM (9 years ago)
Author:
alain
Message:

Introduce two new arguments "cluster_xy" and "coproc_type"
in the system calls related to hardware coprocessors.

File:
1 edited

Legend:

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

    r731 r735  
    1111#include "stdint.h"
    1212#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 );
     18extern user_lock_t tty_lock;
    1319
    1420//////////////////////////////////////
     
    251257#endif
    252258
    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 sts
    259     uint32_t ptw;    // channel ptw
     259    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
    260266
    261267    if (items == 0)  return;
     
    292298
    293299            lock_release( &mwmr->lock );
     300
    294301            return;
    295302        }
     
    341348
    342349    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 sts
    347     uint32_t ptr;    // channel ptr
     350    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
    348355
    349356    if (items == 0) return;
     
    379386
    380387            lock_release( &mwmr->lock );
     388
    381389            return;
    382390        }
Note: See TracChangeset for help on using the changeset viewer.