diff options
author | Oliver O'Halloran <oohall@gmail.com> | 2017-04-04 15:20:47 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-04-05 12:30:44 +1000 |
commit | c2bfa357ad3b8f8d56bbd6ef895795e1d2f1dc6b (patch) | |
tree | 0c68d08c5d7d6e7d10a2397af2a16d962fa01b6a /hdata | |
parent | c3a568c1e8c1ab990bc3e3824567362099d9f119 (diff) | |
download | skiboot-c2bfa357ad3b8f8d56bbd6ef895795e1d2f1dc6b.zip skiboot-c2bfa357ad3b8f8d56bbd6ef895795e1d2f1dc6b.tar.gz skiboot-c2bfa357ad3b8f8d56bbd6ef895795e1d2f1dc6b.tar.bz2 |
hdata: fix reservation size
The hostboot reserved ranges are [start, end] pairs rather than
[start, end) so we need to stick a +1 in there to calculate the
size properly.
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.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hdata/memory.c b/hdata/memory.c index 9b0c766..2df1136 100644 --- a/hdata/memory.c +++ b/hdata/memory.c @@ -475,7 +475,8 @@ 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); + + mem_reserve_hw(label, start_addr, end_addr - start_addr + 1); } } |