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>
This commit is contained in:
Nikunj A Dadhania 2014-10-29 15:57:03 +05:30
parent 5cb3875785
commit 1c17c13a57
1 changed files with 6 additions and 3 deletions

View File

@ -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