Commit ba7971ff by triazo

add a stupid kmalloc thing

parent ba565cc6
Showing with 7 additions and 0 deletions
......@@ -226,3 +226,9 @@ void* malloc(uint32_t bytes)
memory_mark = (void*)((uint32_t)memory_mark + bytes);
return old_mark;
}
void* kmalloc(uint32_t size __attribute__((unused)))
{
return page_allocate();
}
......@@ -48,6 +48,7 @@ page_directory_entry* initiate_directory(); // DEPRECATED
// is free
void* memory_mark;
void* kmalloc(uint32_t);
void* malloc(uint32_t bytes);
// Required for elf loading - virtual memory and stuff
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment