summaryrefslogtreecommitdiffhomepage
path: root/dev/libDDK/src
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-09-07 18:12:25 +0200
committerAmlal El Mahrouss <amlal@nekernel.org>2025-09-07 18:12:25 +0200
commit537cadbf78695a01ea1c00a0a5a4b6b70ddac8c3 (patch)
tree293cd2e60b377729805f1252c37dd28bb332ee6d /dev/libDDK/src
parentd9e1479799ef2d7594c9c9f7dc2724353a01faff (diff)
feat: `ne_launch` and `LaunchHelpers.fwrk`: PID zero of NeKernel.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/libDDK/src')
-rw-r--r--dev/libDDK/src/ddk_kernel_call.c2
-rw-r--r--dev/libDDK/src/ddk_kernel_call_dispatch.S3
2 files changed, 3 insertions, 2 deletions
diff --git a/dev/libDDK/src/ddk_kernel_call.c b/dev/libDDK/src/ddk_kernel_call.c
index 1ac0a0aa..61742b7b 100644
--- a/dev/libDDK/src/ddk_kernel_call.c
+++ b/dev/libDDK/src/ddk_kernel_call.c
@@ -12,7 +12,7 @@
#include <stdarg.h>
/// @brief this is an internal call, do not use it.
-DDK_EXTERN ATTRIBUTE(naked) void* __ke_call_dispatch(const int32_t name, int32_t cnt, void* data,
+DDK_EXTERN ATTRIBUTE(naked) ptr_t __ke_call_dispatch(const int32_t name, int32_t cnt, void* data,
size_t sz);
/// @brief This function hashes the path into a FNV symbol.
/// @param path the path to hash.
diff --git a/dev/libDDK/src/ddk_kernel_call_dispatch.S b/dev/libDDK/src/ddk_kernel_call_dispatch.S
index 7b7a26cb..a607fe40 100644
--- a/dev/libDDK/src/ddk_kernel_call_dispatch.S
+++ b/dev/libDDK/src/ddk_kernel_call_dispatch.S
@@ -21,10 +21,11 @@ __ke_call_dispatch:
push rbp
mov rbp, rsp
+ /* registers have already been pushed. */
+
int kKernelCallTrapId
pop rbp
-
ret
#elif defined(__DDK_POWER64__)