Added a status field to memory regions to differentiate allocated and reserved regions

This commit is contained in:
2022-12-29 19:21:59 +00:00
parent 02b3be636b
commit 7f51b0755b
2 changed files with 3 additions and 1 deletions

View File

@@ -36,6 +36,8 @@ typedef enum memblock_region_status {
} memblock_region_status_t;
typedef struct memblock_region {
/* the status of the memory region (free, reserved, allocated, etc) */
memblock_region_status_t status;
/* the address of the first byte that makes up the region */
phys_addr_t base;
/* the address of the last byte that makes up the region */