diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-11-23 21:06:27 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-23 21:06:27 -0500 |
| commit | 23040fad647634c08697451fc22ee2ca999629c8 (patch) | |
| tree | 72888f88c7728c82f3f6df1f4f70591de15eab36 /dev/libDDK/src/ddk_kernel_call_dispatch.S | |
| parent | e5cc7351f0577b54c528fb827a7c7e6306c3e843 (diff) | |
| parent | 83d870e58457a1d335a1d9b9966a6a1887cc297b (diff) | |
Merge pull request #81 from nekernel-org/dev
feat! breaking changes on kernel sources.
Diffstat (limited to 'dev/libDDK/src/ddk_kernel_call_dispatch.S')
| -rw-r--r-- | dev/libDDK/src/ddk_kernel_call_dispatch.S | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/dev/libDDK/src/ddk_kernel_call_dispatch.S b/dev/libDDK/src/ddk_kernel_call_dispatch.S deleted file mode 100644 index a607fe40..00000000 --- a/dev/libDDK/src/ddk_kernel_call_dispatch.S +++ /dev/null @@ -1,47 +0,0 @@ -/** - lang: asm - compiler: gnu - */ - -#define kKernelCallTrapId 51 - -.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__) - - .intel_syntax noprefix - -/* args rcx, rdx, r8, r9 */ -__ke_call_dispatch: - push rbp - mov rbp, rsp - - /* registers have already been pushed. */ - - int kKernelCallTrapId - - pop rbp - 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, #kKernelCallTrapId - svc #0 - -#endif |
