summaryrefslogtreecommitdiffhomepage
path: root/Public/Kits/System.Core/AMD64
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@el-mahrouss-logic.com>2024-03-19 22:50:16 +0100
committerAmlal El Mahrouss <amlal@el-mahrouss-logic.com>2024-03-19 22:50:16 +0100
commita0f82d57976648c5bfcf165b2e304d2a4c8fb0c7 (patch)
treec24cd3e850a9fc47b352ac8efa50a93b28388925 /Public/Kits/System.Core/AMD64
parentde413aa50bac1342e4ac8c7a66697ea3b551c2e4 (diff)
Kernel:Secret: Fix String class.
Improve kernel APIs.
Diffstat (limited to 'Public/Kits/System.Core/AMD64')
-rw-r--r--Public/Kits/System.Core/AMD64/HCoreAssemblyRoutines.s24
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
+