diff options
author | Christian Cunningham <cc@localhost> | 2022-02-04 18:24:31 -0700 |
---|---|---|
committer | Christian Cunningham <cc@localhost> | 2022-02-04 18:24:31 -0700 |
commit | 13b2bf797bdf4fab0115675c4d2541fff05e285c (patch) | |
tree | 6b622ffe738a8eb76e0c0f7050fab13d1bf1acad /include | |
parent | 6e7f93d6a09865937dde1124a6c3f36eebcd9d82 (diff) |
Implemented new Real-Time friendly Memory Allocation Scheme
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 |