summaryrefslogtreecommitdiffhomepage
path: root/Usr/Sys/CoreSystem/AMD64/CoreAssembly.s
diff options
context:
space:
mode:
authorAmlal EL Mahrouss <amlal@softwarelabs.com>2024-06-09 19:59:14 +0200
committerAmlal EL Mahrouss <amlal@softwarelabs.com>2024-06-09 19:59:14 +0200
commit3cded2a8deaaa8e6907ed1b47d174eb267aab7aa (patch)
treec62fd9f4a8ffe55a9c4066f76bed841872155d1b /Usr/Sys/CoreSystem/AMD64/CoreAssembly.s
parent9679f4d8676cb72feb80d95bca6ce26965f40042 (diff)
MHR-23: Refactor and finishing SMP support.
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..5d1484cf
--- /dev/null
+++ b/Usr/Sys/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
+