diff options
author | Vasant Hegde <hegdevasant@linux.vnet.ibm.com> | 2019-07-12 16:47:38 +0530 |
---|---|---|
committer | Oliver O'Halloran <oohall@gmail.com> | 2019-08-15 17:51:43 +1000 |
commit | ca222757f288bcff710ff557f49a9ec18ee588a4 (patch) | |
tree | 896fbaef05847e13e11d59abde22e9b2007ec173 /core | |
parent | 0e1db80c70477d89a73c7f2a1a7e19c7d8292c5f (diff) | |
download | skiboot-ca222757f288bcff710ff557f49a9ec18ee588a4.zip skiboot-ca222757f288bcff710ff557f49a9ec18ee588a4.tar.gz skiboot-ca222757f288bcff710ff557f49a9ec18ee588a4.tar.bz2 |
OPAL: Add OPAL boot entry address to device tree
Needed for creating OPAL core file.
Sample output:
--------------
sys/firmware/devicetree/base/ibm,opal # lsprop
...
opal-boot-address
00000000 30002560
...
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
[oliver: rebased]
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Diffstat (limited to 'core')
-rw-r--r-- | core/opal.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/opal.c b/core/opal.c index 151c5d9..da746e8 100644 --- a/core/opal.c +++ b/core/opal.c @@ -375,6 +375,7 @@ void add_opal_node(void) { uint64_t base, entry, size; extern uint32_t opal_entry; + extern uint32_t boot_entry; struct dt_node *opal_event; /* XXX TODO: Reorg this. We should create the base OPAL @@ -404,6 +405,7 @@ void add_opal_node(void) dt_add_property_cells(opal_node, "opal-msg-size", OPAL_MSG_SIZE); dt_add_property_u64(opal_node, "opal-base-address", base); dt_add_property_u64(opal_node, "opal-entry-address", entry); + dt_add_property_u64(opal_node, "opal-boot-address", (uint64_t)&boot_entry); dt_add_property_u64(opal_node, "opal-runtime-size", size); /* Add irqchip interrupt controller */ |