Ignore:
Timestamp:
Dec 5, 2014, 4:02:27 PM (10 years ago)
Author:
alain
Message:

1) replace the "giet_locks.c" library by the "user_lock.c" library (the new library uses a ticket allocator).
2) introduce new syscalls in the stdio.c file, to support the NIC peripheral.
3) modify the MWMR library to use the lock with ticket allocator, and to separate the fifo descriptor and the data buffer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_libs/malloc.h

    r382 r461  
    6161
    6262#include "giet_config.h"
    63 #include "spin_lock.h"
     63#include "user_lock.h"
    6464
    65 // There is the magic number indicating that heap(x,y) has been initialized.
     65////////////////////////////////////////////////////////////////////////////////
     66//  magic number indicating that heap(x,y) has been initialized.
     67////////////////////////////////////////////////////////////////////////////////
    6668
    6769#define HEAP_INITIALIZED    0xDEADBEEF
     
    8183    unsigned int   alloc_base;      // alloc[] array base address
    8284    unsigned int   alloc_size;      // alloc[] array size (bytes)
    83     giet_lock_t    lock;            // lock protecting exclusive access
     85    user_lock_t    lock;            // lock protecting exclusive access
    8486    unsigned int   free[32];        // array of base addresses of free blocks
    8587                                    // (address of first block of a given size)
Note: See TracChangeset for help on using the changeset viewer.