From 56f5e218a2976d5d417db61a50035297c021561d Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Mon, 25 Aug 2025 12:20:22 +0200 Subject: feat: fix: ddk: fix dispatch system for ARM64 and AMD64. Signed-off-by: Amlal El Mahrouss --- dev/libDDK/src/ddk_kernel_call_dispatch.S | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'dev/libDDK/src') diff --git a/dev/libDDK/src/ddk_kernel_call_dispatch.S b/dev/libDDK/src/ddk_kernel_call_dispatch.S index 808aa11a..7b7a26cb 100644 --- a/dev/libDDK/src/ddk_kernel_call_dispatch.S +++ b/dev/libDDK/src/ddk_kernel_call_dispatch.S @@ -3,6 +3,8 @@ compiler: gnu */ +#define kKernelCallTrapId 51 + .globl __ke_call_dispatch .text @@ -19,7 +21,7 @@ __ke_call_dispatch: push rbp mov rbp, rsp - syscall + int kKernelCallTrapId pop rbp @@ -38,7 +40,7 @@ __ke_call_dispatch: /* args x0, x8, x9, x10, x11 is kept to tell that this is a Kernel call */ __ke_call_dispatch: /* There is no specific interrupt request id for a system call in ARM64 as well. */ - mov x9, #0x33 + mov x9, #kKernelCallTrapId svc #0 #endif -- cgit v1.2.3