aboutsummaryrefslogtreecommitdiff
path: root/src/core/paging.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/paging.h')
-rw-r--r--src/core/paging.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/core/paging.h b/src/core/paging.h
index 34eddff..53014db 100644
--- a/src/core/paging.h
+++ b/src/core/paging.h
@@ -13,30 +13,35 @@
#define PAGING_ENTRY_POINT_VIRT (1024*PAGING_PAGE_SIZE+3*PAGING_PAGE_SIZE)
#define PAGING_ENTRY_POINT_PHY(page_dir) ((int*)(((int*)((((int*)page_dir)[1])&0xFFFFF000))[3]&0xFFFFF000))
-
-
-
-
/**
* Configure and enable paging
*/
void paging_enable();
+
/**
* Allocate a new page and return its address
*/
char* paging_allocate_next_page();
+
/**
* Set usage status of a page
*/
void paging_set_usage(int addr,char state);
+
/**
* Create a new page directory containing
* p pages.
*/
int *paging_allocate(int p);
+
+/**
+ * Simple dump
+ */
void paging_dump(int min,int max);
+
/**
* Handler of page fault
*/
void paging_page_fault();
+
#endif \ No newline at end of file