os/kernel/cpu/paging.h
2020-07-23 11:50:23 -05:00

16 lines
446 B
C

#ifndef PAGING_H
#define PAGING_H
void map_pages(void* virt_addr_ptr,void* phys_addr_ptr,int num_pages,char usr,char wr);
void unmap_pages(void* start_virt,int num_pages);
void* alloc_pages(int num_pages);
void alloc_pages_virt(int num_pages,void* addr);
void paging_init();
void* paging_new_address_space();
void load_address_space(void* cr3);
void* virt_to_phys(void* virt_addr);
void* find_free_pages(int num_pages);
void* get_cr3();
#endif