memblock region iteration can now be bounded to a certain memory range
This commit is contained in:
@@ -24,6 +24,17 @@
|
||||
|
||||
typedef uint64_t memblock_index_t;
|
||||
|
||||
typedef enum memblock_region_status {
|
||||
/* Used in memblock.memory regions, indicates that the memory region exists */
|
||||
MEMBLOCK_MEMORY = 0,
|
||||
/* Used in memblock.reserved regions, indicates that the memory region was reserved
|
||||
* by a call to memblock_alloc() */
|
||||
MEMBLOCK_ALLOC,
|
||||
/* Used in memblock.reserved regions, indicates that the memory region was reserved
|
||||
* by a call to memblock_reserve() */
|
||||
MEMBLOCK_RESERVED,
|
||||
} memblock_region_status_t;
|
||||
|
||||
typedef struct memblock_region {
|
||||
/* the address of the first byte that makes up the region */
|
||||
uintptr_t base;
|
||||
|
||||
Reference in New Issue
Block a user