summaryrefslogtreecommitdiffhomepage
path: root/Public/Developer/SystemLib/PowerPC
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@el-mahrouss-logic.com>2024-04-03 09:20:28 +0200
committerAmlal El Mahrouss <amlal@el-mahrouss-logic.com>2024-04-03 09:20:28 +0200
commit3facc32b746a44b0e3a91cbe1897127194396d1b (patch)
tree0725ebbf35a18e6933596ea5c765ac81adf7834f /Public/Developer/SystemLib/PowerPC
parentefc6b5d169d2b6eaabe7384141cec6054ae622a0 (diff)
MHR-3: See main changes below.
Kernel: Improve Disk interfaces regarding the struct they're using (all of them are using MountpountInterface now) SystemLib: Start adding PowerPC code to the SystemLib to be cross compiled as a PEF FAT binary. Kernel: Adding new builtins to support a wide range of hardware. Signed-off-by: Amlal El Mahrouss <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'Public/Developer/SystemLib/PowerPC')
-rw-r--r--Public/Developer/SystemLib/PowerPC/CoreAssembly.s26
1 files changed, 26 insertions, 0 deletions
diff --git a/Public/Developer/SystemLib/PowerPC/CoreAssembly.s b/Public/Developer/SystemLib/PowerPC/CoreAssembly.s
new file mode 100644
index 00000000..7fef98e3
--- /dev/null
+++ b/Public/Developer/SystemLib/PowerPC/CoreAssembly.s
@@ -0,0 +1,26 @@
+/** ===========================================
+ (C) Mahrouss Logic
+ Purpose: PowerPC low-level routines.
+ ===========================================*/
+
+.section .text
+
+.globl RtGetApp
+.globl RtAssertTriggerInterrupt
+.balign 4
+
+/* @brief Application getter */
+/* @throws: ApptError: appartement error. */
+RtGetApp:
+ stw 0x10, 0(3) /* sysGetProcessObject */
+ sc
+
+ blr
+
+RtAssertTriggerInterrupt:
+ stw 0x11, 0(3) /* sysTerminateCurrentProcess */
+ stw 0x3, 0(4)
+ sc
+
+ blr
+