feat: initial paging setup
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
|
||||
#include <myke/tasks/task.h>
|
||||
#include <myke/mem/malloc.h>
|
||||
#include <myke/mem/pmm.h>
|
||||
#include <myke/mem/pm.h>
|
||||
|
||||
// retrieved from https://github.com/blanham/liballoc
|
||||
|
||||
@@ -41,7 +41,7 @@ int liballoc_unlock() {
|
||||
* \return A pointer to the allocated memory.
|
||||
*/
|
||||
void *liballoc_alloc(size_t size) {
|
||||
return pmm_get_pages(size);
|
||||
return pm_get_pages(size);
|
||||
}
|
||||
|
||||
/** This frees previously allocated memory. The void* parameter passed
|
||||
@@ -53,7 +53,7 @@ void *liballoc_alloc(size_t size) {
|
||||
* \return 0 if the memory was successfully freed.
|
||||
*/
|
||||
int liballoc_free(void *addr, size_t size) {
|
||||
pmm_free_pages(addr, size);
|
||||
pm_free_pages(addr, size);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user