mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
19 lines
622 B
C
19 lines
622 B
C
#ifndef LIBA_MEMCONFIG_H
|
|
#define LIBA_MEMCONFIG_H
|
|
|
|
/* This structure contains all the configuration data for the mem5 allocator.
|
|
* Before using mem5, the HeapConfig global variable should be created
|
|
* and initialized. */
|
|
|
|
typedef struct {
|
|
int nHeap; /* Size of pHeap[] */
|
|
void *pHeap; /* Heap storage space */
|
|
int mnReq; /* Min heap requests sizes */
|
|
int bMemstat; /* True to enable memory status */
|
|
void (*xLog)(void*,int,const char*); /* Function for logging */
|
|
} heap_config_t;
|
|
|
|
extern heap_config_t HeapConfig;
|
|
|
|
#endif
|