diff options
Diffstat (limited to 'Public/Kits/System.Core/AMD64')
| -rw-r--r-- | Public/Kits/System.Core/AMD64/HCoreAssemblyRoutines.s | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Public/Kits/System.Core/AMD64/HCoreAssemblyRoutines.s b/Public/Kits/System.Core/AMD64/HCoreAssemblyRoutines.s new file mode 100644 index 00000000..71984042 --- /dev/null +++ b/Public/Kits/System.Core/AMD64/HCoreAssemblyRoutines.s @@ -0,0 +1,24 @@ +/** =========================================== + (C) Mahrouss Logic + ===========================================*/ + +.section .text + +.globl HcGetProcessObject +.globl __assert_chk_fail + +/* @brief Process object getter */ +/* @throws: ApptError: appartement error. */ +HcGetProcessObject: + mov $0x10, %rcx /* sysGetProcessObject */ + int $0x21 + + /* rax gets saved and returned. */ + ret + +__assert_chk_fail: + mov $0x11, %rcx /* sysTerminateCurrentProcess */ + int $0x21 + + ret + |
