summaryrefslogtreecommitdiffhomepage
path: root/dev
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-08-25 12:20:22 +0200
committerAmlal El Mahrouss <amlal@nekernel.org>2025-08-25 12:20:22 +0200
commit56f5e218a2976d5d417db61a50035297c021561d (patch)
tree013ad15509f30200b90ed06b77a1cae09d4dee1a /dev
parentb38d3345dd46b474cfda05fe34188910623f4f7c (diff)
feat: fix: ddk: fix dispatch system for ARM64 and AMD64.v0.0.4e2-release
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev')
-rw-r--r--dev/libDDK/src/ddk_kernel_call_dispatch.S6
1 files changed, 4 insertions, 2 deletions
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