diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-08-25 12:31:40 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-25 12:31:40 +0200 |
| commit | 97f0b0d062f93040fb43ac5c882c40691c58ff7a (patch) | |
| tree | 013ad15509f30200b90ed06b77a1cae09d4dee1a | |
| parent | b820542aa04e302f0b08224b2fb9e727260d00bd (diff) | |
| parent | 56f5e218a2976d5d417db61a50035297c021561d (diff) | |
Merge pull request #58 from nekernel-org/dev
feat: fix: ddk: fix dispatch system for ARM64 and AMD64.
| -rw-r--r-- | dev/libDDK/src/ddk_kernel_call_dispatch.S | 6 |
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 |
