diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-04-22 08:19:02 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-04-22 08:19:47 +0200 |
| commit | e548e79578d692dce885e7ef3cb38d993e90e07f (patch) | |
| tree | 9bb266f04cada12c6b9f7bca8ced160164599069 /Private/DriverKit/KernelDispatchCall.S | |
| parent | 593e9b91591a9b98f6f46b5db046fe56f719ef24 (diff) | |
MHR-5: A new part of the porting has been done.
- Separate makefiles for each targets.
- New Toolbox calls as well.
- Check for platform to deduce __kernelDispatchCall.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Private/DriverKit/KernelDispatchCall.S')
| -rw-r--r-- | Private/DriverKit/KernelDispatchCall.S | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Private/DriverKit/KernelDispatchCall.S b/Private/DriverKit/KernelDispatchCall.S new file mode 100644 index 00000000..4eec8ae0 --- /dev/null +++ b/Private/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: + mflr 3 + sc + blr + +#endif |
