summaryrefslogtreecommitdiffhomepage
path: root/Usr/Sys/CoreSystem/POWER/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/POWER/CoreAssembly.s
parent9679f4d8676cb72feb80d95bca6ce26965f40042 (diff)
MHR-23: Refactor and finishing SMP support.
Diffstat (limited to 'Usr/Sys/CoreSystem/POWER/CoreAssembly.s')
-rw-r--r--Usr/Sys/CoreSystem/POWER/CoreAssembly.s23
1 files changed, 23 insertions, 0 deletions
diff --git a/Usr/Sys/CoreSystem/POWER/CoreAssembly.s b/Usr/Sys/CoreSystem/POWER/CoreAssembly.s
new file mode 100644
index 00000000..e7919f23
--- /dev/null
+++ b/Usr/Sys/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