1 /* (CC-BY-NC-SA) ROBIN KRENS - ROBIN @ ROBINKRENS.NL
4 * 2019/10/20 - ROBIN KRENS
20 #define BLOCKSIZE 0x10
22 /* #define KHEAP_SIZE 0x100 SEE LINK.LD */
24 static mem_pool_t kheap_pool;
28 extern unsigned char * _beginofheap;
29 pool_init(&kheap_pool, BLOCKSIZE, BLOCKS, (unsigned char *) &_beginofheap);
33 void * kalloc(void * s) {
38 void kfree(void * s, void * p) {
43 void kheap_info(void *s) {
50 return (void *) &kheap_pool;