blob: 7c5000ea51e8509a85ebc6091b19dca1eec56f92 [file] [log] [blame]
swissChili825d46b2021-02-21 10:14:16 -08001#pragma once
2
3#include "kint.h"
4#include "registers.h"
5
6/* defined in switch_table.s */
7extern uint load_page_directory(uint table_address);
8extern void enable_paging();
9
10void *_kmalloc(size_t size, bool align, void **phys);
11void *kmalloc(size_t size);
12void *kmalloc_a(size_t size);
13void *kmalloc_ap(size_t size, void **p);
14
15void initialize_paging();
16
17void page_fault(struct registers *regs);