summaryrefslogtreecommitdiff
path: root/kc/core/memory.h
diff options
context:
space:
mode:
authorAda Christine <adachristine18@gmail.com>2021-12-26 01:12:31 +0000
committerAda Christine <adachristine18@gmail.com>2021-12-26 01:12:31 +0000
commit2b0734bdc362d5f453e5bfe833b534298072a56a (patch)
tree6007e56e35ef448b43c1de3e7e5998fd2ca360de /kc/core/memory.h
parent257bdba7ddcc8d9893927c458e3c6e377c4e8d9c (diff)
everything builds, probably doesn't work. commit in preparation for a merge
Diffstat (limited to 'kc/core/memory.h')
-rw-r--r--kc/core/memory.h18
1 files changed, 2 insertions, 16 deletions
diff --git a/kc/core/memory.h b/kc/core/memory.h
index 67b0648..847ac8d 100644
--- a/kc/core/memory.h
+++ b/kc/core/memory.h
@@ -5,7 +5,7 @@
#include <stddef.h>
-typdef int (*memory_space_handler_func)(uint32_t code, void *vaddr);
+typedef int (*memory_space_handler_func)(uint32_t code, void *vaddr);
enum page_map_flags
{
@@ -20,21 +20,6 @@ enum page_map_flags
SIZE_MASK = 0xc,
};
-enum memory_space_flags
-{
- SYSTEM_SPACE = 0x1, // memory cannot be swapped
-};
-
-struct memory_space
-{
- enum memory_space_flags flags;
- memory_space_handler_func handler;
- void *base;
- void *head;
-};
-
-void memory_init(struct memory_range *ranges, int count);
-
void *memcpy(void *dest, const void *src, size_t size);
void *memmove(void *dest, const void *src, size_t size);
void *memset(void *dest, int val, size_t size);
@@ -51,3 +36,4 @@ void heap_free(void *block);
void *memory_alloc(size_t size);
void memory_free(void *block);
+