aboutsummaryrefslogtreecommitdiff
path: root/include/lib/mem.h
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-01-20 18:33:29 -0700
committerChristian Cunningham <cc@localhost>2022-01-20 18:33:29 -0700
commit9ca0f8a8bdbfe543a23ff2e75502744a7263a5b7 (patch)
tree3670a0f0aaa70f03c0176e9e1a0d292139f0fa04 /include/lib/mem.h
parent022dfd0f42962da6c60fbeb5604e1455a07eaaa6 (diff)
Added memory functions
Diffstat (limited to 'include/lib/mem.h')
-rw-r--r--include/lib/mem.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/lib/mem.h b/include/lib/mem.h
index 166dfdc..eff6445 100644
--- a/include/lib/mem.h
+++ b/include/lib/mem.h
@@ -12,15 +12,19 @@ struct MemTab {
void* data;
} __attribute__((packed));
+void memset(unsigned char* dest, unsigned char value, unsigned int n);
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 memset32(unsigned long* dest, unsigned long value, 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* calloc(unsigned char size);
void* malloca(unsigned char size, unsigned char amnt);
+void* calloca(unsigned char size, unsigned char amnt);
void free(void* memloc);
void* heap_base(void);
void* heap_top(void);