ARM: hyp-stub: Define a return value for failed stub calls

Define a standard return value to be returned when a hyp stub
call fails.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <cdall@linaro.org>
This commit is contained in:
Marc Zyngier 2017-04-03 19:37:51 +01:00 committed by Christoffer Dall
parent cf763e4ede
commit 4c70cf07ce
2 changed files with 3 additions and 1 deletions

View File

@ -104,4 +104,6 @@ extern char __hyp_text_end[];
#endif /* __ASSEMBLY__ */
#define HVC_STUB_ERR 0xbadca11
#endif /* ! VIRT_H */

View File

@ -216,7 +216,7 @@ __hyp_stub_do_trap:
bne 1f
bx r1
1: mov r0, #-1
1: ldr r0, =HVC_STUB_ERR
__hyp_stub_exit:
__ERET