diff options
Diffstat (limited to 'src/heap.h')
| -rw-r--r-- | src/heap.h | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/heap.h b/src/heap.h deleted file mode 100644 index 2f66501..0000000 --- a/src/heap.h +++ /dev/null @@ -1,23 +0,0 @@ -#include"types.h" - -typedef struct _KHEAPBLOCKBM { - struct _KHEAPBLOCKBM *next; - uint32_t size; - uint32_t used; - uint32_t bsize; - uint32_t lfb; -} KHEAPBLOCKBM; - -typedef struct _KHEAPBM { - KHEAPBLOCKBM *fblock; -} KHEAPBM; - -void k_heapBMInit(KHEAPBM *heap); -int k_heapBMAddBlock(KHEAPBM *heap, uintptr_t addr, uint32_t size, uint32_t bsize); -void *k_heapBMAlloc(KHEAPBM *heap, uint32_t size); -void k_heapBMFree(KHEAPBM *heap, void *ptr); - -extern KHEAPBM kheap; - -#define kmalloc k_heapBMAlloc -#define kfree k_heapBMFree |
