Didn't feel the need to make a new branch for this one, but i added some doxygen documentation templates to all of the headers. It's a bit overdue.
40 lines
602 B
C
40 lines
602 B
C
/**
|
|
* @file virtmem.h
|
|
* @brief
|
|
* @details
|
|
*/
|
|
#ifndef VIRTMEM_H
|
|
#define VIRTMEM_H
|
|
#include <stdint.h>
|
|
|
|
/**
|
|
* @brief
|
|
*/
|
|
extern uint32_t global_page_dir;
|
|
|
|
/**
|
|
* @brief
|
|
*/
|
|
extern uint32_t kernel_pagetable;
|
|
|
|
/**
|
|
* @brief
|
|
* @param page_dir
|
|
* @param phys_loc
|
|
* @param virtual_loc
|
|
* @param page_opts
|
|
* @return int
|
|
*/
|
|
int map(uint32_t* page_dir, uint32_t phys_loc, uint32_t virtual_loc, uint8_t page_opts);
|
|
|
|
/**
|
|
* @brief
|
|
* @param phys_loc
|
|
* @param virtual_loc
|
|
* @param page_opts
|
|
* @return int
|
|
*/
|
|
int kmap(uint32_t phys_loc, uint32_t virtual_loc, uint8_t page_opts);
|
|
|
|
|
|
#endif
|