blob: 17fa13dae2a29b8b1edaf4893bc51cdce0004322 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#ifndef APOS_ARCH_PAGES_H
#define APOS_ARCH_PAGES_H
#include <vmem.h>
stat_t map_vpage(struct vm_branch *branch,
pm_t paddr, vm_t vaddr, vmflags_t flags, enum mm_order order);
stat_t unmap_vpage(struct vm_branch *branch, vm_t vaddr);
stat_t mod_vpage(struct vm_branch *branch, vm_t vaddr, pm_t paddr, vmflags_t flags);
stat_t stat_vpage(struct vm_branch *branch, vm_t vaddr, pm_t *paddr,
enum mm_order *order, vmflags_t *flags);
void flush_tlb();
void flush_tlb_all();
void populate_root_branch(struct vm_branch *b);
struct vm_branch *init_vmem(void *fdt);
#ifdef DEBUG
stat_t setup_kernel_io(struct vm_branch *b, vm_t paddr);
#endif
#endif /* APOS_ARCH_PAGES_H */
|