[SLOF] [PATCH slof v4 3/3] rtas: Store RTAS address and entry in the device tree

Alexey Kardashevskiy aik at ozlabs.ru
Wed Oct 4 16:40:01 AEDT 2017

At the moment we count on the guest kernel to update or create device
tree properties pointing to the instantiated RTAS copy which is not
very reliable.

This stores rtas-base and rtas-entry in the DT at the instantiation
point so later on the H_UPDATE_DT hcall can supply QEMU with an updated
location of RTAS.

This superseeds f9a60de30 "Add private HCALL to inform updated
RTAS base and entry".

Signed-off-by: Alexey Kardashevskiy <aik at ozlabs.ru>
 board-qemu/slof/rtas.fs | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/board-qemu/slof/rtas.fs b/board-qemu/slof/rtas.fs
index 219bcda..7f3b4c0 100644
--- a/board-qemu/slof/rtas.fs
+++ b/board-qemu/slof/rtas.fs
@@ -178,8 +178,13 @@ rtas-node set-node
 : close ;
 : instantiate-rtas ( adr -- entry )
+    s" /rtas" find-node >r
+    dup encode-int s" slof,rtas-base" r@ set-property
     dup rtas-base swap rtas-size move
     rtas-entry rtas-base - +
+    dup encode-int s" slof,rtas-entry" r> set-property

More information about the SLOF mailing list