diff options
Diffstat (limited to 'dev/libDDK/src/ddk_kernel_call_dispatch.S')
| -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 |
