From 09dd11ddf800898c00ecb04a65fb5cd10fb481fa Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Wed, 8 May 2024 12:32:41 +0200 Subject: MHR-23: :boom: changes, reworked project tree. Signed-off-by: Amlal El Mahrouss --- NewKernel/DriverKit/KernelDispatchCall.S | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 NewKernel/DriverKit/KernelDispatchCall.S (limited to 'NewKernel/DriverKit/KernelDispatchCall.S') diff --git a/NewKernel/DriverKit/KernelDispatchCall.S b/NewKernel/DriverKit/KernelDispatchCall.S new file mode 100644 index 00000000..64b6663e --- /dev/null +++ b/NewKernel/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