aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/include/mm/pmm.h
blob: 772bc445ab669d285718062fdaa2b19d306afdaf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef PMM_H
#define PMM_H

#include <stdint.h>
#include <stddef.h>
#include <limine.h>

struct Bitmap {
    Bitmap* next;
    uint64_t length;
    uint64_t limit;
    uint64_t* address;
};

void pmm_init(limine_memmap_response* memmap);
uint64_t palloc();
void pfree(uint64_t page);

#endif