diff options
Diffstat (limited to 'include/lib/mem.h')
-rw-r--r-- | include/lib/mem.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/include/lib/mem.h b/include/lib/mem.h new file mode 100644 index 0000000..5c5cc94 --- /dev/null +++ b/include/lib/mem.h @@ -0,0 +1,25 @@ +#ifndef LIB_MEM_H +#define LIB_MEM_H + +struct MemTab { + unsigned char size; + unsigned char in_use; + void* data; +} __attribute__((packed)); + +void memcpy(unsigned char* src, unsigned char* dest, unsigned int n); +unsigned char memcmp(unsigned char* a, unsigned char* b, unsigned int n); + +void memshow32(unsigned long* addr, unsigned int n); +void memcpy32(unsigned long* src, unsigned long* dest, unsigned int n); +unsigned char memcmp32(unsigned long* a, unsigned long* b, unsigned int n); + +void* malloc(unsigned char size); +void* malloca(unsigned char size, unsigned char amnt); +void free(void* memloc); +void* heap_base(void); +void* heap_top(void); +void heap_info(void); +void heap_info_u(void); + +#endif |