[SLOF] [PATCH slof] client: Load initramdisk location
    Alexey Kardashevskiy 
    aik at ozlabs.ru
       
    Fri Nov  8 19:34:39 AEDT 2019
    
    
  
This allows passing zImage via -kernel in the QEMU command line.
Signed-off-by: Alexey Kardashevskiy <aik at ozlabs.ru>
---
 slof/fs/client.fs | 11 +++++++++++
 1 file changed, 11 insertions(+)
diff --git a/slof/fs/client.fs b/slof/fs/client.fs
index 8a7f6ac4326d..138177e4c2a3 100644
--- a/slof/fs/client.fs
+++ b/slof/fs/client.fs
@@ -45,6 +45,17 @@ VARIABLE  client-callback \ Address of client's callback function
   >r  ciregs >r7 !  ciregs >r6 !  client-entry-point @ ciregs >r5 !
   \ Initialise client-stack-pointer
   cistack ciregs >r1 !
+
+  s" linux,initrd-end" get-chosen IF decode-int -rot 2drop ELSE 0 THEN
+  s" linux,initrd-start" get-chosen IF decode-int -rot 2drop ELSE 0 THEN
+  2dup - dup IF
+    ciregs >r4 !
+    ciregs >r3 !
+    drop
+  ELSE
+    3drop
+  THEN
+
   \ jump-client maps to call_client in slof/entry.S
   \ When jump-client returns, R3 holds the address of a NUL-terminated string
   \ that holds the client interface word the client wants to call, R4 holds
-- 
2.17.1
    
    
More information about the SLOF
mailing list