]> xenbits.xensource.com Git - unikraft/unikraft.git/commitdiff
arch/arm64: Fix dependency for `arm64_syscall_adapter`
authorTianyi Liu <i.pear@outlook.com>
Thu, 12 Oct 2023 13:19:41 +0000 (21:19 +0800)
committerRazvan Deaconescu <razvand@unikraft.io>
Fri, 20 Oct 2023 16:35:55 +0000 (19:35 +0300)
The `arm64_syscall_adapter` was introduced by #1009.

In order to forward binary syscalls,
it requires a dependency on `CONFIG_LIBSYSCALL_SHIM_HANDLER`,
and the current `CONFIG_LIBSYSCALL_SHIM` is not enough.

Signed-off-by: Tianyi Liu <i.pear@outlook.com>
Reviewed-by: Razvan Virtan <virtanrazvan@gmail.com>
Reviewed-by: Maria Sfiraiala <maria.sfiraiala@gmail.com>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
GitHub-Closes: #1132

plat/common/arm/traps_arm64.c

index 5ad6c9003ff1b06e0bfe43d65706ef9ac40b6bf9..14faca5639767c2bbf50cac4be3349fe09802cef 100644 (file)
@@ -222,7 +222,7 @@ void trap_el1_irq(struct __regs *regs)
        gic->ops.handle_irq(regs);
 }
 
-#ifdef CONFIG_LIBSYSCALL_SHIM
+#ifdef CONFIG_LIBSYSCALL_SHIM_HANDLER
 
 extern void ukplat_syscall_handler(struct __regs *r);
 
@@ -236,4 +236,4 @@ static int arm64_syscall_adapter(void *data)
 
 UK_EVENT_HANDLER(UKARCH_TRAP_SYSCALL, arm64_syscall_adapter);
 
-#endif /* CONFIG_LIBSYSCALL_SHIM */
+#endif /* CONFIG_LIBSYSCALL_SHIM_HANDLER */