|
@@ -52,22 +52,14 @@ void *sys_alloc(allocator_t *allocator, heap_t *heap, size_t size) {
|
|
|
/* Note: border_ptr has already a value in memory space aware allocators,
|
|
|
* so in this case we have to check also the initialized value.
|
|
|
*/
|
|
|
-#ifndef LEON3
|
|
|
if(allocator->border_ptr != NULL && allocator->initialized) {
|
|
|
-#else
|
|
|
- if(allocator->border_ptr != NULL && allocator->initialized == '1') {
|
|
|
-#endif /* LEON3 */
|
|
|
#endif /* WITH_MEMORY_SPACE_AWARENESS */
|
|
|
previous_size = get_size(allocator->border_ptr);
|
|
|
previous_size_availability = get_size_availability(allocator->border_ptr);
|
|
|
} else {
|
|
|
previous_size = 0;
|
|
|
previous_size_availability = 1; /* Occupied and of 0 size */
|
|
|
-#ifndef LEON3
|
|
|
allocator->initialized = true;
|
|
|
-#else
|
|
|
- allocator->initialized = '1';
|
|
|
-#endif /* LEON3 */
|
|
|
}
|
|
|
|
|
|
#ifndef WITH_MEMORY_SPACE_AWARENESS
|