summaryrefslogtreecommitdiffstats
path: root/include/mem_region.h
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2015-06-04 09:28:11 +0800
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-06-05 11:43:24 +1000
commit9ea274ef840bc90fc6df40bf884325cdb565b689 (patch)
treee86df6ee4cf253bf50ce927d1241fa59b8758ef9 /include/mem_region.h
parent417333aa73103b3cc05b27df5e4b328fe71dab5f (diff)
downloadtalos-skiboot-9ea274ef840bc90fc6df40bf884325cdb565b689.tar.gz
talos-skiboot-9ea274ef840bc90fc6df40bf884325cdb565b689.zip
core/mem_region: Create reservations of type REGION_HW_RESERVED
All current users of mem_reserve are actually wanting HW_RESERVED memory; these reservations are for memory initialised pre-skiboot. This change marks these regions as REGION_HW_RESERVED instead of REGION_RESERVED. We also rename mem_reserve to mem_reserve_hw to reflect this change. This fixes an issue where the PRD daemon cannot find reserved ranges (eg, the homer image) that have been created by skiboot itself. Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include/mem_region.h')
-rw-r--r--include/mem_region.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mem_region.h b/include/mem_region.h
index e2827c30..d1da02a4 100644
--- a/include/mem_region.h
+++ b/include/mem_region.h
@@ -70,7 +70,7 @@ void mem_region_init(void);
void mem_region_add_dt_reserved(void);
/* Mark memory as reserved */
-void mem_reserve(const char *name, uint64_t start, uint64_t len);
+void mem_reserve_hw(const char *name, uint64_t start, uint64_t len);
struct mem_region *find_mem_region(const char *name);
OpenPOWER on IntegriCloud