Changeset 461 for soft/giet_vm/giet_libs/malloc.h
- Timestamp:
- Dec 5, 2014, 4:02:27 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_libs/malloc.h
r382 r461 61 61 62 62 #include "giet_config.h" 63 #include " spin_lock.h"63 #include "user_lock.h" 64 64 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 //////////////////////////////////////////////////////////////////////////////// 66 68 67 69 #define HEAP_INITIALIZED 0xDEADBEEF … … 81 83 unsigned int alloc_base; // alloc[] array base address 82 84 unsigned int alloc_size; // alloc[] array size (bytes) 83 giet_lock_t lock; // lock protecting exclusive access85 user_lock_t lock; // lock protecting exclusive access 84 86 unsigned int free[32]; // array of base addresses of free blocks 85 87 // (address of first block of a given size)
Note: See TracChangeset
for help on using the changeset viewer.