summaryrefslogtreecommitdiffhomepage
path: root/Public/Developer/SystemLib/AMD64
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@el-mahrouss-logic.com>2024-03-29 17:01:55 +0100
committerAmlal El Mahrouss <amlal@el-mahrouss-logic.com>2024-03-29 17:06:28 +0100
commit7e5be1572c043484293ee0cdd840dd41f54e87ee (patch)
tree171427b27eb240d4006fda89e485ce6da28fd749 /Public/Developer/SystemLib/AMD64
parentd7eb7affee3733dfeee6864045da4c2f5df2e919 (diff)
Kernel and SystemLib: See below.
What has been done: - Rename most System.Core to SystemLib. - Reworked it's API and the concept of ObjectRef to become the ApplicationRef object. - Remove unused ODF and XIFF file format from tree, ODF will be part of the text editing program. - Update Readme for SystemLib. - Add Support folder on NewFS partitions. What is next: - NewFS filesystem support. - Program loading. - Preemptive scheduler on non-SMP systems using timers. Signed-off-by: Amlal El Mahrouss <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'Public/Developer/SystemLib/AMD64')
-rw-r--r--Public/Developer/SystemLib/AMD64/HCoreAssemblyRoutines.s24
1 files changed, 24 insertions, 0 deletions
diff --git a/Public/Developer/SystemLib/AMD64/HCoreAssemblyRoutines.s b/Public/Developer/SystemLib/AMD64/HCoreAssemblyRoutines.s
new file mode 100644
index 00000000..58bb1260
--- /dev/null
+++ b/Public/Developer/SystemLib/AMD64/HCoreAssemblyRoutines.s
@@ -0,0 +1,24 @@
+/** ===========================================
+ (C) Mahrouss Logic
+ ===========================================*/
+
+.section .text
+
+.globl RtGetAppObject
+.globl __assert_chk_fail
+
+/* @brief Process object getter */
+/* @throws: ApptError: appartement error. */
+RtGetAppObject:
+ mov $0x10, %rcx /* sysGetProcessObject */
+ int $0x21
+
+ /* rax gets saved and returned. */
+ ret
+
+__assert_chk_fail:
+ mov $0x11, %rcx /* sysTerminateCurrentProcess */
+ int $0x21
+
+ ret
+