Changeset 216 for soft/giet_vm/sys/drivers.c
- Timestamp:
- Sep 18, 2012, 6:38:49 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/sys/drivers.c
r215 r216 78 78 #endif 79 79 80 #if ( (NB_TIMERS_MAX + NB_PROCS_MAX) > 32 )80 #if ( (NB_TIMERS_MAX) > 32 ) 81 81 # error: NB_TIMERS_MAX + NB_PROCS_MAX cannot be larger than 32 82 82 #endif … … 111 111 // local_id in [0, NB_PROCS_MAX-1], 112 112 // - "user" timers : requested by the task in the mapping_info data structure. 113 // local_id in [NB_PROC_MAX, NB_PROCS_MAX + NB_TIMERS_MAX - 1]114 113 // For each user timer, the timer_id is stored in the context of the task. 115 114 // The global index is cluster_id * (NB_PROCS_MAX+NB_TIMERS_MAX) + local_id … … 136 135 { 137 136 // parameters checking 138 if ( cluster_id >= NB_CLUSTERS) 139 if ( local_id >= NB_TIMERS_MAX + NB_PROCS_MAX ) return 1;137 if ( cluster_id >= NB_CLUSTERS) return 1; 138 if ( local_id >= NB_TIMERS_MAX) return 2; 140 139 141 140 #if USE_XICU … … 164 163 { 165 164 // parameters checking 166 if ( cluster_id >= NB_CLUSTERS) 167 if ( local_id >= NB_TIMERS_MAX + NB_PROCS_MAX ) return 1;165 if ( cluster_id >= NB_CLUSTERS) return 1; 166 if ( local_id >= NB_TIMERS_MAX ) return 2; 168 167 169 168 #if USE_XICU … … 193 192 { 194 193 // parameters checking 195 if ( cluster_id >= NB_CLUSTERS) 196 if ( local_id >= NB_TIMERS_MAX + NB_PROCS_MAX ) return 1;194 if ( cluster_id >= NB_CLUSTERS) return 1; 195 if ( local_id >= NB_TIMERS_MAX ) return 2; 197 196 198 197 #if USE_XICU
Note: See TracChangeset
for help on using the changeset viewer.