KERNEL: First Kernel heap implementation

This commit is contained in:
2022-09-03 17:27:29 +02:00
parent 656ca0baa8
commit a47879f404
8 changed files with 83 additions and 51 deletions

View File

@ -11,13 +11,7 @@ extern "C" const uint32_t kernel_end;
#define IS_NVS_MEMORY(MEM_TYPE) MEM_TYPE & 0x8
#define IS_BADRAM_MEMORY(MEM_TYPE) MEM_TYPE & 0x10
struct MemoryInfoBlock {
uint32_t Base_addr ;
uint32_t Memory_Size;
MemoryInfoBlock* next;
uint8_t type;
};
struct BootInfoBlock {
bool MapIsInvalid;
uint32_t bootDeviceID ;
@ -33,9 +27,4 @@ struct BootInfoBlock {
bool EnabledVBE;
bool PhysicalMemoryMapAvailable;
MemoryInfoBlock* MemoryMap;
uint32_t map_size;
uint32_t MemorySize ;
};