summaryrefslogtreecommitdiffhomepage
path: root/dev/ddk/src/ddk_kernel_call_dispatch.S
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-08-25 09:50:27 +0200
committerAmlal El Mahrouss <amlal@nekernel.org>2025-08-25 09:50:27 +0200
commita7939c9a20d5f4b83d5df34aa652a88a0764042c (patch)
treed773fa076011ac6a54c1de93755797b09e7bd3ca /dev/ddk/src/ddk_kernel_call_dispatch.S
parentd864e0c6281024ce4b9bd654aa83308a50f583d8 (diff)
feat! ddk -> libDDK, use syscall on AMD64.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/ddk/src/ddk_kernel_call_dispatch.S')
-rw-r--r--dev/ddk/src/ddk_kernel_call_dispatch.S36
1 files changed, 0 insertions, 36 deletions
diff --git a/dev/ddk/src/ddk_kernel_call_dispatch.S b/dev/ddk/src/ddk_kernel_call_dispatch.S
deleted file mode 100644
index c66d9d49..00000000
--- a/dev/ddk/src/ddk_kernel_call_dispatch.S
+++ /dev/null
@@ -1,36 +0,0 @@
-/**
- lang: asm
- compiler: gnu
- */
-
-.globl __ke_call_dispatch
-
-.text
-
-/* Really simple function, takes our va-list,
- and brings it to the trap handler in the Kernel. */
-
-#if defined(__DDK_AMD64__)
-
-/* args rcx, rdx, r8, r9 */
-__ke_call_dispatch:
- int $0x33
- ret
-
-#elif defined(__DDK_POWER64__)
-
-/* args r8, r9, r10, r11 */
-ke_call_dispatch:
- /* There is no specific interrupt request id for a system call in POWER. */
- sc
- blr
-
-#elif defined(__DDK_ARM64__)
-
-/* 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
- svc #0
-
-#endif