Refactor memory allocation implementation and add KernelReserve flag to memory mappings

This commit is contained in:
EnderIce2
2024-03-19 03:57:30 +02:00
parent 1bd58a309f
commit b35045e7ca
9 changed files with 610 additions and 562 deletions

View File

@ -19,7 +19,7 @@
#define __FENNIX_KERNEL_MEMORY_STACK_GUARD_H__
#include <types.h>
#include <vector>
#include <list>
#include <memory/table.hpp>
@ -42,10 +42,10 @@ namespace Memory
bool UserMode = false;
bool Expanded = false;
VirtualMemoryArea *vma = nullptr;
std::vector<AllocatedPages> AllocatedPagesList;
std::list<AllocatedPages> AllocatedPagesList;
public:
std::vector<AllocatedPages> GetAllocatedPages()
std::list<AllocatedPages> GetAllocatedPages()
{
return AllocatedPagesList;
}