aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikunj A Dadhania <nikunj@linux.vnet.ibm.com>2014-10-29 15:57:03 +0530
committerNikunj A Dadhania <nikunj@linux.vnet.ibm.com>2014-10-29 15:59:24 +0530
commit1c17c13a577ebbaf82d848ef46b61aa4dae5ae11 (patch)
tree96726ebe4cebec3e11584b0b8631a0620870e511
parent5cb387578536910dff86ccdf351a6691548d49a4 (diff)
downloadSLOF-1c17c13a577ebbaf82d848ef46b61aa4dae5ae11.zip
SLOF-1c17c13a577ebbaf82d848ef46b61aa4dae5ae11.tar.gz
SLOF-1c17c13a577ebbaf82d848ef46b61aa4dae5ae11.tar.bz2
rtas: Improve error handling in instantiate-rtas
Error handling, even when the call is not implemented, code was printing failed. Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
-rw-r--r--board-qemu/slof/rtas.fs9
1 files changed, 6 insertions, 3 deletions
diff --git a/board-qemu/slof/rtas.fs b/board-qemu/slof/rtas.fs
index c081b57..2e10b0a 100644
--- a/board-qemu/slof/rtas.fs
+++ b/board-qemu/slof/rtas.fs
@@ -175,10 +175,13 @@ rtas-node set-node
: instantiate-rtas ( adr -- entry )
dup rtas-base swap rtas-size move
dup rtas-entry rtas-base - +
- 2dup hv-rtas-update 0 <> IF
- ." Failed to update RTAS " cr
+ 2dup hv-rtas-update dup 0 <> IF
+ \ Ignore hcall not implemented error, print error otherwise
+ dup -2 <> IF ." HV-RTAS-UPDATE error: " . cr ELSE drop THEN
+ ELSE
+ drop
THEN
- nip
+ nip
;
device-end