aboutsummaryrefslogtreecommitdiff
path: root/hdata
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 /hdata
parentc873cc7bc58b05f1aa4554f6338f430169efa1db (diff)
downloadskiboot-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 'hdata')
-rw-r--r--hdata/memory.c2
-rw-r--r--hdata/test/stubs.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/hdata/memory.c b/hdata/memory.c
index 0c6c081..46ad4f7 100644
--- a/hdata/memory.c
+++ b/hdata/memory.c
@@ -470,7 +470,7 @@ static void get_hb_reserved_mem(struct HDIF_common_hdr *ms_vpd)
prlog(PR_DEBUG, "MEM: Reserve '%s' %#" PRIx64 "-%#" PRIx64 " (type/inst=0x%08x)\n",
label, start_addr, end_addr, be32_to_cpu(hb_resv_mem->type_instance));
- mem_reserve_hw(label, start_addr, end_addr - start_addr + 1);
+ mem_reserve_fw(label, start_addr, end_addr - start_addr + 1);
}
}
diff --git a/hdata/test/stubs.c b/hdata/test/stubs.c
index 0777730..e3b0fdf 100644
--- a/hdata/test/stubs.c
+++ b/hdata/test/stubs.c
@@ -99,7 +99,6 @@ STUB(op_display);
STUB(fsp_preload_lid);
STUB(fsp_wait_lid_loaded);
STUB(fsp_adjust_lid_side);
-STUB(backtrace);
/* Add HW specific stubs here */
static void noop_function(void) {}
@@ -107,4 +106,4 @@ static void noop_function(void) {}
void fnname(void) __attribute__((weak, alias ("noop_function")))
NOOP_STUB(early_uart_init);
-NOOP_STUB(mem_reserve_hw);
+NOOP_STUB(mem_reserve_fw);