summaryrefslogtreecommitdiffhomepage
path: root/Usr/Sys/CoreSystem/AMD64/CoreAssembly.s
diff options
context:
space:
mode:
authorAmlal <amlalelmahrouss@icloud.com>2024-06-13 06:32:06 +0000
committerAmlal <amlalelmahrouss@icloud.com>2024-06-13 06:32:06 +0000
commit36ff25861676cd1f5fb94b901fa59b015c614bc5 (patch)
tree92d68c0e4ba1eeb0d608a917bfdc587909260e13 /Usr/Sys/CoreSystem/AMD64/CoreAssembly.s
parent4e75e05a20ddd0dbca982e8f3bc2ea8043ed3a3f (diff)
parenta0b3442fe9978093326dc29d0938f1116eadd147 (diff)
Merged in MHR-23 (pull request #15)
MHR-23
Diffstat (limited to 'Usr/Sys/CoreSystem/AMD64/CoreAssembly.s')
-rw-r--r--Usr/Sys/CoreSystem/AMD64/CoreAssembly.s28
1 files changed, 28 insertions, 0 deletions
diff --git a/Usr/Sys/CoreSystem/AMD64/CoreAssembly.s b/Usr/Sys/CoreSystem/AMD64/CoreAssembly.s
new file mode 100644
index 00000000..a2cf12f1
--- /dev/null
+++ b/Usr/Sys/CoreSystem/AMD64/CoreAssembly.s
@@ -0,0 +1,28 @@
+/* -------------------------------------------
+
+ Copyright Zeta Electronics Corporation
+
+ 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
+