heap: Integrate hekate rework

This commit is contained in:
shchmue 2019-12-09 12:50:38 -07:00
parent f2e5413ef3
commit 12a076ca82
3 changed files with 60 additions and 14 deletions

View file

@ -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;