summaryrefslogtreecommitdiff
path: root/src/kernel/mem.h
blob: f608bb8d28683fd105495e7607ae7ba540f9e7bd (plain)
1
2
3
4
5
6
7
8
9
10
11
#pragma once
#include <kernel/main.h>
#include <stddef.h>

void mem_init(struct kmain_info *);

// allocates `pages` consecutive pages
void *page_alloc(size_t pages);

// frees `pages` consecutive pages starting from *first
void page_free(void *first, size_t pages);