os/drivers/paging.h

18 lines
466 B
C
Raw Normal View History

2018-10-22 07:43:05 -05:00
#ifndef PAGING_H
#define PAGING_H
#include <stdint.h>
2018-11-04 16:12:54 -06:00
#include "paging_helpers.h"
2018-10-22 07:43:05 -05:00
2018-11-04 16:12:54 -06:00
#define NUM_KERN_DIRS 2
#define KERN_VIRT_START 0xC0100000
#define KERN_PHYS_START 0x100000
void alloc_pages(void* virt_addr_ptr,void* phys_addr_ptr,int num_pages,char usr,char wr,uint32_t* page_directory,uint32_t* page_tables);
void* alloc_kern_pages(int num_pages,char wr);
2018-10-28 13:01:00 -05:00
int dir_entry_present(int entry);
2018-11-04 16:12:54 -06:00
void* virt_to_phys(void* virt_addr);
void initialize_paging();
2018-10-22 07:43:05 -05:00
#endif