X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=blobdiff_plain;f=tos%2Flib%2Ftosthreads%2Fsystem%2FTosMallocC.nc;h=8de2ba39feee80323f7482b146256357ac543fc4;hp=7f811e2b212834bde22dc2f01a9372f03d72b9ba;hb=e9bfab607e051bae6afb47b44892ce37541d1b44;hpb=adf1de6c009d13b7b52e68535c63b28f59c97400 diff --git a/tos/lib/tosthreads/system/TosMallocC.nc b/tos/lib/tosthreads/system/TosMallocC.nc index 7f811e2b..8de2ba39 100644 --- a/tos/lib/tosthreads/system/TosMallocC.nc +++ b/tos/lib/tosthreads/system/TosMallocC.nc @@ -52,7 +52,7 @@ implementation { size_t malloc_heap[MALLOC_HEAP_SIZE]; - void *tos_malloc (size_t size) @C() @spontaneous() + void *tos_malloc (size_t size) @C() AT_SPONTANEOUS { static char once = 0; size_t * heap_bottom = &(malloc_heap[MALLOC_HEAP_SIZE]); @@ -103,7 +103,7 @@ implementation { return NULL; } - void tos_free (void *p) @C() @spontaneous() + void tos_free (void *p) @C() AT_SPONTANEOUS { size_t *t = (size_t*)p - 1; MARK_FREE (t);