summaryrefslogtreecommitdiff
path: root/kernel/include/paging.h
blob: 8f69224c91c909fbaef642bfb7b2358cf5a35ddc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef PAGING_H
#define PAGING_H

#include <types.h>

#define PAGE_SIZE 0x00200000
#define FLAG_PRESENT 0x1
#define FLAG_WRITABLE 0x2
#define FLAG_USER 0x4
#define FLAG_HUGE 0x80
#define KERNEL_VMA 0xc0000000

void init_paging(void);
void map_addr(uint64_t virt, uint64_t phys, uint32_t flags);
void page_fault(uint64_t error);

#endif