Changeset 239 for soft/giet_vm/libs


Ignore:
Timestamp:
May 29, 2013, 5:09:34 PM (12 years ago)
Author:
joannou
Message:

Changed NB_TASKS to NB_TASKS_MAX in malloc.c file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/libs/malloc.c

    r233 r239  
    44#include "stdio.h"
    55
    6 heap_ll * _heap_head[NB_TASKS];
    7 
    8 unsigned int _heap_base[NB_TASKS];
    9 unsigned int _heap_length[NB_TASKS];
    10 
    11 int _first_malloc[NB_TASKS] = { 0 };
     6heap_ll * _heap_head[NB_TASKS_MAX];
     7
     8unsigned int _heap_base[NB_TASKS_MAX];
     9unsigned int _heap_length[NB_TASKS_MAX];
     10
     11int _first_malloc[NB_TASKS_MAX] = { 0 };
    1212
    1313
     
    1515
    1616#elif MALLOC_SELECTED == 2
    17     heap_ll * _prev_next_last_allocted[NB_TASKS] = { 0 };
     17    heap_ll * _prev_next_last_allocted[NB_TASKS_MAX] = { 0 };
    1818#else
    1919    #define MAX_SIZE_POW2_TAB 28
     
    4747                                                   27
    4848
    49     heap_ll * _pow2tab[NB_TASKS][MAX_SIZE_POW2_TAB] = {{ 0 }};
     49    heap_ll * _pow2tab[NB_TASKS_MAX][MAX_SIZE_POW2_TAB] = {{ 0 }};
    5050#endif
    5151
Note: See TracChangeset for help on using the changeset viewer.