From 9db58da40cfcb6643412bfae25aefc0cd1077f9d Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Mon, 27 May 2024 20:45:46 +0200 Subject: MHR-23: Improve project structure, make it better. Signed-off-by: Amlal El Mahrouss --- DriverKit/KernelDispatchCall.S | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 DriverKit/KernelDispatchCall.S (limited to 'DriverKit/KernelDispatchCall.S') diff --git a/DriverKit/KernelDispatchCall.S b/DriverKit/KernelDispatchCall.S new file mode 100644 index 00000000..64b6663e --- /dev/null +++ b/DriverKit/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