diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/globals.h | 2 | ||||
| -rw-r--r-- | include/lib/kmem.h | 9 | 
2 files changed, 11 insertions, 0 deletions
diff --git a/include/globals.h b/include/globals.h index 2d1f7a4..423425f 100644 --- a/include/globals.h +++ b/include/globals.h @@ -9,6 +9,8 @@ extern unsigned long cntfrq;  extern char* os_name;  extern char* os_info_v; +unsigned char kmem_begin[0x2000000]; +unsigned char kmem_lookup[0xD000];  extern unsigned long exe_cnt;  extern struct Mutex exe_cnt_m;  extern unsigned char rpi_heap[MAX_MM]; diff --git a/include/lib/kmem.h b/include/lib/kmem.h new file mode 100644 index 0000000..4e79c96 --- /dev/null +++ b/include/lib/kmem.h @@ -0,0 +1,9 @@ +#ifndef LIB_KMEM_H +#define LIB_KMEM_H + +void* kmalloc(unsigned int size); +void* kcalloc(unsigned int size); +void* krealloc(void* old, unsigned int size); +void  kfree(void* ptr); + +#endif  | 
