From: Antonios Motakis <[email protected]>

Plug in the core handler for hypercalls, so we can start implementing
the more interesting stuff.

Signed-off-by: Antonios Motakis <[email protected]>
---
 hypervisor/arch/arm64/traps.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/hypervisor/arch/arm64/traps.c b/hypervisor/arch/arm64/traps.c
index e0051bb..45163fd 100644
--- a/hypervisor/arch/arm64/traps.c
+++ b/hypervisor/arch/arm64/traps.c
@@ -48,12 +48,12 @@ static int arch_handle_hvc(struct trap_context *ctx)
 {
        unsigned long *regs = ctx->regs;
 
-       if (IS_PSCI_32(regs[0]) || IS_PSCI_64(regs[0])) {
+       if (IS_PSCI_32(regs[0]) || IS_PSCI_64(regs[0]))
                regs[0] = psci_dispatch(ctx);
-               return TRAP_HANDLED;
-       }
+       else
+               regs[0] = hypercall(regs[0], regs[1], regs[2]);
 
-       return TRAP_UNHANDLED;
+       return TRAP_HANDLED;
 }
 
 static void dump_regs(struct trap_context *ctx)
-- 
2.8.0.rc3


-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to