summaryrefslogtreecommitdiffhomepage
path: root/SDK/Libraries/CoreSystem/AMD64
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@el-mahrouss-logic.com>2024-05-27 20:45:46 +0200
committerAmlal El Mahrouss <amlal@el-mahrouss-logic.com>2024-05-27 20:45:46 +0200
commit9db58da40cfcb6643412bfae25aefc0cd1077f9d (patch)
treec6664fc649968ca1be7ddc59dfe3e9a7dd0f3ebc /SDK/Libraries/CoreSystem/AMD64
parentce84bea215424ff36a2c18cab67835edfa8f71b5 (diff)
MHR-23: Improve project structure, make it better.
Signed-off-by: Amlal El Mahrouss <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'SDK/Libraries/CoreSystem/AMD64')
-rw-r--r--SDK/Libraries/CoreSystem/AMD64/CoreAssembly.s28
1 files changed, 28 insertions, 0 deletions
diff --git a/SDK/Libraries/CoreSystem/AMD64/CoreAssembly.s b/SDK/Libraries/CoreSystem/AMD64/CoreAssembly.s
new file mode 100644
index 00000000..5d1484cf
--- /dev/null
+++ b/SDK/Libraries/CoreSystem/AMD64/CoreAssembly.s
@@ -0,0 +1,28 @@
+/* -------------------------------------------
+
+ Copyright SoftwareLabs
+
+ Purpose: AMD64 low level I/O
+
+------------------------------------------- */
+
+.text
+
+.globl RtGetAppPointer
+.globl RtAssertTriggerInterrupt
+
+/* @brief Application getter */
+/* @throws: ApptError: appartement error. */
+RtGetAppPointer:
+ mov $0x10, %rcx /* sysGetProcessObject */
+ int $0x32
+
+ /* rax gets saved and returned. */
+ ret
+
+RtAssertTriggerInterrupt:
+ mov $0x11, %rcx /* sysTerminateCurrentProcess */
+ int $0x32
+
+ ret
+