diff options
author | Marvin Borner | 2019-10-15 22:22:23 +0200 |
---|---|---|
committer | GitHub | 2019-10-15 22:22:23 +0200 |
commit | 2e988c84fc9b282e7618ba89a5c3b2ef9406121e (patch) | |
tree | 6e9741c6b2117796a2e40da1f0fade84c090aac7 /src/kernel/paging/paging.h | |
parent | 8754542ce074bef0984f91ce1b1cd8aff9b3d5e9 (diff) | |
parent | 0e75de0452774c1d4f9a16ff593d9ec2fac829bc (diff) |
Merged VESA-paging fix
Fixed paging activation before initialization of VESA driver
Diffstat (limited to 'src/kernel/paging/paging.h')
-rw-r--r-- | src/kernel/paging/paging.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/kernel/paging/paging.h b/src/kernel/paging/paging.h index 51f407f..681b84e 100644 --- a/src/kernel/paging/paging.h +++ b/src/kernel/paging/paging.h @@ -25,11 +25,21 @@ typedef struct page_directory { } page_directory_t; /** - * Initialize the environment and enables paging + * Initialize the environment and enable paging */ void initialise_paging(); /** + * Enable paging bit in CR0 (without initializing) + */ +void enable_paging(); + +/** + * Disable paging bit in CR0 + */ +void disable_paging(); + +/** * Load the page directory into the CR3 register * @param new The page directory */ |