Added a status field to memory regions to differentiate allocated and reserved regions
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user