From b0815a9638ec11bb3f804f3d6eeaa2822ff4cb09 Mon Sep 17 00:00:00 2001 From: Edgaru089 Date: Mon, 11 Oct 2021 20:39:47 +0800 Subject: [PATCH] memory: mention map_PagingAllocated zeroes the memory --- memory/paging_internal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/memory/paging_internal.h b/memory/paging_internal.h index a012bd1..bdc3f07 100644 --- a/memory/paging_internal.h +++ b/memory/paging_internal.h @@ -54,9 +54,9 @@ void paging_physical_FreeFrame(uint64_t frame, int pageCount); // void paging_map_Page(uint64_t physical, uint64_t virt, int pageCount, int protectionFlags); void paging_map_Page2M(uint64_t physical, uint64_t virt, int pageCount, int protectionFlags); void paging_map_Page1G(uint64_t physical, uint64_t virt, int pageCount, int protectionFlags); -// Allocates pageCount fresh new 4K pages with paging_physical and maps them continuously to virtual +// Allocates pageCount fresh new 4K pages with paging_physical and maps them continuously to virtual (zeroed) void paging_map_PageAllocated(uint64_t virt, int pageCount, int protectionFlags); -// Allocates pageCount fresh new 2M pages with paging_physical and maps them continuously to virtual +// Allocates pageCount fresh new 2M pages with paging_physical and maps them continuously to virtual (zeroed) void paging_map_PageAllocated2M(uint64_t virt, int pageCount, int protectionFlags); // Unmaps the pages at virtual and free the underlying physical frames, with past-the-end of the memory addr void paging_map_FreeAllocated(uint64_t virt, uint64_t virt_end);