From 8f262d685126a9a9f68beb6d4002ba30bebae401 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Tue, 28 May 2024 11:52:48 +0200 Subject: MHR-23: Improve scheduler code: Dont use 39, write kErrorProcessFault instead. MHR-23: Improve filesystem structure. Signed-off-by: Amlal El Mahrouss --- DDK/KernelDispatchCall.S | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 DDK/KernelDispatchCall.S (limited to 'DDK/KernelDispatchCall.S') 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 -- cgit v1.2.3