heap: Integrate hekate rework
This commit is contained in:
parent
f2e5413ef3
commit
12a076ca82
3 changed files with 60 additions and 14 deletions
|
@ -25,6 +25,7 @@ typedef struct _hnode
|
|||
u32 size;
|
||||
struct _hnode *prev;
|
||||
struct _hnode *next;
|
||||
u32 align[4]; // Align to arch cache line size.
|
||||
} hnode_t;
|
||||
|
||||
typedef struct _heap
|
||||
|
@ -32,3 +33,9 @@ typedef struct _heap
|
|||
u32 start;
|
||||
hnode_t *first;
|
||||
} heap_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
u32 total;
|
||||
u32 used;
|
||||
} heap_monitor_t;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue