|
@@ -27,10 +27,10 @@
|
|
|
|
|
|
#include "dmm_config.h"
|
|
#include "dmm_config.h"
|
|
|
|
|
|
|
|
+#include <stdbool.h>
|
|
#ifndef LEON3
|
|
#ifndef LEON3
|
|
#include <stdint.h>
|
|
#include <stdint.h>
|
|
#include <stddef.h> /* For size_t support */
|
|
#include <stddef.h> /* For size_t support */
|
|
-#include <stdbool.h>
|
|
|
|
#else
|
|
#else
|
|
#include <sys/types.h>
|
|
#include <sys/types.h>
|
|
#endif
|
|
#endif
|
|
@@ -122,11 +122,7 @@ typedef struct heap_s {
|
|
/** The allocator structure of dmmlib. */
|
|
/** The allocator structure of dmmlib. */
|
|
typedef struct allocator_s {
|
|
typedef struct allocator_s {
|
|
heap_t heaps[NUM_HEAPS]; /**< The heaps that the allocator manages. */
|
|
heap_t heaps[NUM_HEAPS]; /**< The heaps that the allocator manages. */
|
|
-#ifndef LEON3
|
|
|
|
bool initialized; /**< Initialization flag of the allocator. */
|
|
bool initialized; /**< Initialization flag of the allocator. */
|
|
-#else
|
|
|
|
- char initialized; /**< Initialization flag of the allocator. */
|
|
|
|
-#endif /* LEON3 */
|
|
|
|
void *border_ptr; /**< Border pointer of the allocator. */
|
|
void *border_ptr; /**< Border pointer of the allocator. */
|
|
#ifdef WITH_MEMORY_SPACE_AWARENESS
|
|
#ifdef WITH_MEMORY_SPACE_AWARENESS
|
|
size_t remaining_size; /**< The size of the remaining free space which
|
|
size_t remaining_size; /**< The size of the remaining free space which
|