summaryrefslogtreecommitdiffhomepage
path: root/DDK/KernelDispatchCall.S
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@el-mahrouss-logic.com>2024-05-28 11:52:48 +0200
committerAmlal El Mahrouss <amlal@el-mahrouss-logic.com>2024-05-28 11:52:48 +0200
commit8f262d685126a9a9f68beb6d4002ba30bebae401 (patch)
tree6b4931b8e647bb4b9a8144ce385850eedb086bd9 /DDK/KernelDispatchCall.S
parent9db58da40cfcb6643412bfae25aefc0cd1077f9d (diff)
MHR-23: Improve scheduler code: Dont use 39, write kErrorProcessFault instead.
MHR-23: Improve filesystem structure. Signed-off-by: Amlal El Mahrouss <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'DDK/KernelDispatchCall.S')
-rw-r--r--DDK/KernelDispatchCall.S21
1 files changed, 21 insertions, 0 deletions
diff --git a/DDK/KernelDispatchCall.S b/DDK/KernelDispatchCall.S
new file mode 100644
index 00000000..64b6663e
--- /dev/null
+++ b/DDK/KernelDispatchCall.S
@@ -0,0 +1,21 @@
+.globl __kernelDispatchCall
+
+.section .text
+
+/* Really simple function, takes our va-list,
+ and brings it to the trap handler in the kernel. */
+
+#ifdef __x86_64__
+
+__kernelDispatchCall:
+ int $0x33
+ ret
+
+#elif defined(__powerpc64__)
+
+__kernelDispatchCall:
+ /* There is no specific interrupt request id for a system call in POWER. */
+ sc
+ blr
+
+#endif