提交 4c70cf07 编写于 作者: M Marc Zyngier 提交者: Christoffer Dall

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: NMarc Zyngier <marc.zyngier@arm.com>
Signed-off-by: NChristoffer Dall <cdall@linaro.org>
上级 cf763e4e
......@@ -104,4 +104,6 @@ extern char __hyp_text_end[];
#endif /* __ASSEMBLY__ */
#define HVC_STUB_ERR 0xbadca11
#endif /* ! VIRT_H */
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册