summaryrefslogtreecommitdiffstats
path: root/core/test
diff options
context:
space:
mode:
authorOliver O'Halloran <oohall@gmail.com>2017-05-24 16:00:51 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-05-26 15:55:23 +1000
commit0039819f46e71a2f549b7a418dc5440fb04156b6 (patch)
tree9048028e0c48f409b8e7ff53232cc3a07cad4f6c /core/test
parentc873cc7bc58b05f1aa4554f6338f430169efa1db (diff)
downloadtalos-skiboot-0039819f46e71a2f549b7a418dc5440fb04156b6.tar.gz
talos-skiboot-0039819f46e71a2f549b7a418dc5440fb04156b6.zip
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/test')
-rw-r--r--core/test/run-mem_range_is_reserved.c2
-rw-r--r--core/test/run-mem_region_reservations.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/core/test/run-mem_range_is_reserved.c b/core/test/run-mem_range_is_reserved.c
index 0efe9b92..95c790dc 100644
--- a/core/test/run-mem_range_is_reserved.c
+++ b/core/test/run-mem_range_is_reserved.c
@@ -165,7 +165,7 @@ static void run_test(struct test *test)
/* create our reservations */
for (r = test->regions; r->start; r++)
- mem_reserve_hw("r", r->start, r->end - r->start);
+ mem_reserve_fw("r", r->start, r->end - r->start);
reserved = mem_range_is_reserved(0x1000, 0x1000);
diff --git a/core/test/run-mem_region_reservations.c b/core/test/run-mem_region_reservations.c
index 87649532..584b7c34 100644
--- a/core/test/run-mem_region_reservations.c
+++ b/core/test/run-mem_region_reservations.c
@@ -205,14 +205,14 @@ int main(void)
/* add pre-init reservations */
for (i = 0; i < ARRAY_SIZE(test_regions); i++)
- mem_reserve_hw(test_regions[i].name,
+ mem_reserve_fw(test_regions[i].name,
test_regions[i].addr, 0x1000);
/* Now convert. */
mem_region_init();
/* add a post-init reservation */
- mem_reserve_hw("test.4", 0x5000, 0x1000);
+ mem_reserve_fw("test.4", 0x5000, 0x1000);
/* release unused */
mem_region_release_unused();
OpenPOWER on IntegriCloud