From aca116a82c7b9ef715ec9e7ed6d2f97d56715327 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Mon, 14 Oct 2019 17:20:25 +0200 Subject: Trying some things --- src/kernel/paging/paging.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/kernel/paging/paging.h') 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,10 +25,20 @@ 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 -- cgit v1.2.3