aboutsummaryrefslogtreecommitdiff
path: root/hdata/spira.h
diff options
context:
space:
mode:
authorVasant Hegde <hegdevasant@linux.vnet.ibm.com>2018-09-07 10:46:54 +0530
committerStewart Smith <stewart@linux.vnet.ibm.com>2018-09-13 15:20:01 +1000
commit70a7a3fdfa36c2e105fd02061d4f440d22f99d7a (patch)
tree929dcbe0c358ef1fa1fd50dd7c992b3023d0558f /hdata/spira.h
parent2fba868b53809431df97e31ab728c85b0312ef06 (diff)
downloadskiboot-70a7a3fdfa36c2e105fd02061d4f440d22f99d7a.zip
skiboot-70a7a3fdfa36c2e105fd02061d4f440d22f99d7a.tar.gz
skiboot-70a7a3fdfa36c2e105fd02061d4f440d22f99d7a.tar.bz2
hdata: Cleanup get_hb_reserved_mem
- Use macro for label size - Replace malloc with array Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Reviewed-by: Oliver O'Halloran <oohall@gmail.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hdata/spira.h')
-rw-r--r--hdata/spira.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/hdata/spira.h b/hdata/spira.h
index ef2aec2..476cfba 100644
--- a/hdata/spira.h
+++ b/hdata/spira.h
@@ -541,6 +541,7 @@ struct msvpd_trace {
/* Idata index 5: Hostboot reserved memory address range */
#define MSVPD_IDATA_HB_RESERVED_MEM 5
+#define HB_RESERVE_MEM_LABEL_SIZE 64
struct msvpd_hb_reserved_mem {
#define MSVPD_HBRMEM_RANGE_TYPE PPC_BITMASK32(0,7)
#define HBRMEM_CONTAINER_VERIFICATION_CODE 0x3
@@ -548,7 +549,7 @@ struct msvpd_hb_reserved_mem {
__be64 start_addr;
__be64 end_addr;
__be32 label_size;
- uint8_t label[64];
+ uint8_t label[HB_RESERVE_MEM_LABEL_SIZE];
uint8_t rw_perms;
#define HB_RESERVE_READABLE 0x80
#define HB_RESERVE_WRITEABLE 0x40