From 4978793981af726456cb9cd77d93368047ec6c82 Mon Sep 17 00:00:00 2001 From: Pawel Wieczorkiewicz Date: Mon, 23 Oct 2023 11:39:34 +0200 Subject: [PATCH] arch,pt: do not map all used memory Since all necessary pages have been mapped, no need to map anything else. Signed-off-by: Pawel Wieczorkiewicz --- arch/x86/pagetables.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/x86/pagetables.c b/arch/x86/pagetables.c index bf09f3a5..daf32be4 100644 --- a/arch/x86/pagetables.c +++ b/arch/x86/pagetables.c @@ -287,7 +287,6 @@ void init_pagetables(void) { map_frames_array(); map_multiboot_areas(); - map_used_memory(); map_tmp_mapping(); write_cr3(cr3.paddr);