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:
parent
5cb3875785
commit
1c17c13a57
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue