summaryrefslogtreecommitdiffhomepage
path: root/SDK/Libraries/CoreSystem/POWER/CoreAssembly.s
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/POWER/CoreAssembly.s
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/POWER/CoreAssembly.s')
-rw-r--r--SDK/Libraries/CoreSystem/POWER/CoreAssembly.s23
1 files changed, 23 insertions, 0 deletions
diff --git a/SDK/Libraries/CoreSystem/POWER/CoreAssembly.s b/SDK/Libraries/CoreSystem/POWER/CoreAssembly.s
new file mode 100644
index 00000000..e7919f23
--- /dev/null
+++ b/SDK/Libraries/CoreSystem/POWER/CoreAssembly.s
@@ -0,0 +1,23 @@
+; /* -------------------------------------------
+;
+; Copyright SoftwareLabs
+;
+; Purpose: POWER low level I/O
+;
+; ------------------------------------------- */
+
+/* @brief Application getter */
+/* @throws: ApptError: appartement error. */
+export .code64 RtGetAppPointer:
+ mflr r3
+ stw 0x10, 0(r3) /* sysGetProcessObject */
+ sc
+
+ blr
+
+export .code64 RtAssertTriggerInterrupt:
+ mflr r3
+ stw 0x11, 0(r3) /* sysTerminateCurrentProcess */
+ sc
+
+ blr