summaryrefslogtreecommitdiff
path: root/src/paging.c
blob: 539b26ab2934351a20824ffedbb5a679f62f969b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#include "aplos.h"

bool
page_fault_handler(uint32_t code)
{
	int write = code&0x2;

	uint64_t addr = get_cr2();
	print(u8"Page fault trying to %s %p\n", write ? u8"write to" : u8"read from", addr);

	return false; /* We didn't actually handle it */
}