diff options
author | Oliver O'Halloran <oohall@gmail.com> | 2017-05-24 16:00:51 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-05-26 15:55:23 +1000 |
commit | 0039819f46e71a2f549b7a418dc5440fb04156b6 (patch) | |
tree | 9048028e0c48f409b8e7ff53232cc3a07cad4f6c /core/mem_region.c | |
parent | c873cc7bc58b05f1aa4554f6338f430169efa1db (diff) | |
download | skiboot-0039819f46e71a2f549b7a418dc5440fb04156b6.zip skiboot-0039819f46e71a2f549b7a418dc5440fb04156b6.tar.gz skiboot-0039819f46e71a2f549b7a418dc5440fb04156b6.tar.bz2 |
mem_region: rename HW_RESERVE to FW_RESERVE
Currently all existing reservations are made by hostboot itself or on
behalf of some other part of system firmware (e.g. the OCCs). We want
to add a "true" hardware reservation type that should not be touched
by the host OS. To prepare for that this patch renames the existing
reservation type to refect it's actual usage.
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core/mem_region.c')
-rw-r--r-- | core/mem_region.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/core/mem_region.c b/core/mem_region.c index a314558..a8a92ff 100644 --- a/core/mem_region.c +++ b/core/mem_region.c @@ -756,13 +756,13 @@ static bool add_region(struct mem_region *region) return true; } -void mem_reserve_hw(const char *name, uint64_t start, uint64_t len) +void mem_reserve_fw(const char *name, uint64_t start, uint64_t len) { struct mem_region *region; bool added = true; lock(&mem_region_lock); - region = new_region(name, start, len, NULL, REGION_HW_RESERVED); + region = new_region(name, start, len, NULL, REGION_FW_RESERVED); assert(region); if (!mem_region_init_done) @@ -935,7 +935,7 @@ static void mem_region_parse_reserved_properties(void) region = new_region(name, dt_get_number(range, 2), dt_get_number(range + 1, 2), - NULL, REGION_HW_RESERVED); + NULL, REGION_FW_RESERVED); add_region(region); } } else if (names || ranges) { @@ -974,7 +974,7 @@ static bool mem_region_parse_reserved_nodes(const char *path) region = new_region(strdup(node->name), dt_get_number(reg->prop, 2), dt_get_number(reg->prop + sizeof(u64), 2), - node, REGION_HW_RESERVED); + node, REGION_FW_RESERVED); add_region(region); } @@ -1151,7 +1151,7 @@ static void mem_region_add_dt_reserved_node(struct dt_node *parent, * update regions' device-tree nodes, and we want those updates to * apply to the nodes in /reserved-memory/. */ - if (region->type == REGION_HW_RESERVED && region->node) { + if (region->type == REGION_FW_RESERVED && region->node) { if (region->node->parent != parent) region->node = dt_copy(region->node, parent); return; |