diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2021-04-16 20:20:29 +0200 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2021-04-16 20:20:29 +0200 |
| commit | 1e397041c255581b68dc4ba240b3267fd3d0dc8f (patch) | |
| tree | 757467f9ac0d998963ee5d80560205286b482acb /src/core/paging.h | |
| parent | 93c2975ea8096a391a242299e119c31844b8fcbf (diff) | |
Cleaning code
Diffstat (limited to 'src/core/paging.h')
| -rw-r--r-- | src/core/paging.h | 13 |
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 |
