matos/core/paging.h

11 lines
224 B
C
Raw Normal View History

2018-11-11 23:04:23 +01:00
#pragma once
#include "types.h"
2018-11-12 23:01:55 +01:00
#define PAGING_MEM_USER 1
#define PAGING_MEM_READ (1 << 1)
#define PAGING_MEM_WRITE (1 << 2)
2018-11-11 23:04:23 +01:00
int pagingSetup(paddr_t upperKernelAddr);
2018-11-12 21:32:04 +01:00
int pageMap(vaddr_t vaddr, paddr_t paddr, int flags);