diff options
author | Oliver O'Halloran <oohall@gmail.com> | 2017-07-20 16:09:58 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-07-25 15:40:28 +1000 |
commit | efa238b10f835808d110a66135e12c72367b97dc (patch) | |
tree | a2c6d8846a54bfddd78a0c939e532669ccb0df9e /hdata/spira.h | |
parent | 024bbfd036bed080a21e30f5a62d287c7e3a42c2 (diff) | |
download | skiboot-efa238b10f835808d110a66135e12c72367b97dc.zip skiboot-efa238b10f835808d110a66135e12c72367b97dc.tar.gz skiboot-efa238b10f835808d110a66135e12c72367b97dc.tar.bz2 |
hdata/memory: Add memory reservations to the DT
Currently we just add these to a list of pre-boot reserved regions
which is then converted into a the contents of the /reserved-memory/
node just before Skiboot jumps into the firmware kernel.
This approach is insufficent because we need to add the ibm,prd-instance
labels to the various hostboot reserved regions. To do this we want to
create these resevation nodes inside the HDAT parser rather than having
the mem_region flattening code handle it. On P8 systems Hostboot placed
its memory reservations under the /ibm,hostboot/ node and this patch
makes the HDAT parser do the same.
Signed-off-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.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/hdata/spira.h b/hdata/spira.h index caea057..4867b6d 100644 --- a/hdata/spira.h +++ b/hdata/spira.h @@ -530,7 +530,10 @@ struct msvpd_hb_reserved_mem { __be64 end_addr; __be32 label_size; uint8_t label[64]; - __be64 reserved; + uint8_t rw_perms; +#define HB_RESERVE_READABLE 0x80 +#define HB_RESERVE_WRITEABLE 0x40 + uint8_t reserved[7]; } __packed; /* Child index 0: MS area child structure */ |