memory: mention map_PagingAllocated zeroes the memory

This commit is contained in:
Edgaru089 2021-10-11 20:39:47 +08:00
parent 1fa1a088ab
commit b0815a9638

View File

@ -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_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_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); 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); 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); 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 // 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); void paging_map_FreeAllocated(uint64_t virt, uint64_t virt_end);