swissChili | e4f0199 | 2021-02-25 15:38:12 -0800 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | #include "kint.h" |
| 4 | |
| 5 | void *_kmalloc(size_t size, bool align, void **phys); |
| 6 | void *kmalloc(size_t size); |
| 7 | void *kmalloc_a(size_t size); |
| 8 | void *kmalloc_ap(size_t size, void **p); |
| 9 | |
| 10 | void *malloc(size_t size); |
| 11 | void free(void *mem); |
swissChili | 6575dd7 | 2021-02-28 11:31:28 -0800 | [diff] [blame] | 12 | void *realloc(void *mem, size_t size); |
swissChili | e4f0199 | 2021-02-25 15:38:12 -0800 | [diff] [blame] | 13 | |
| 14 | void init_allocator(); |
swissChili | 6c0519e | 2021-03-07 19:40:23 -0800 | [diff] [blame] | 15 | |
| 16 | void test_allocator(); |