diff options
| author | Miguel <m.i@gmx.at> | 2018-08-17 18:17:21 +0200 |
|---|---|---|
| committer | Miguel <m.i@gmx.at> | 2018-08-17 18:17:21 +0200 |
| commit | 340f513e9a41dd5815e79cffe54c3f631407f4e1 (patch) | |
| tree | 08ee2757e891513467cc6fb06f94efb58adc618e /kernel/kmalloc.h | |
| parent | 51d4dd040a291b62c648ff6cc0d7e0058cf4056f (diff) | |
cleaning up in progress
Diffstat (limited to 'kernel/kmalloc.h')
| -rw-r--r-- | kernel/kmalloc.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/kernel/kmalloc.h b/kernel/kmalloc.h index 2f89f8a..2faecb8 100644 --- a/kernel/kmalloc.h +++ b/kernel/kmalloc.h @@ -1,2 +1,16 @@ #include <stdint.h> -uint32_t kballoc(uint32_t size); + +/* + * Kernel Block Memory Allocation + * + * The kernel reserves some memory for internal operation, since malloc + * is not available. + * + * Last Revision: 17 AUG 2018 + */ + +// Allocate size*4096 bytes and returns a 32-bit pointer +uint32_t kballoc (uint32_t size); + +// Free memory allocated before by supplying the address (TODO) +uint32_t kbfree (uint32_t addr); |
