From 3facc32b746a44b0e3a91cbe1897127194396d1b Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Wed, 3 Apr 2024 09:20:28 +0200 Subject: 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 --- Public/Developer/SystemLib/PowerPC/CoreAssembly.s | 26 +++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Public/Developer/SystemLib/PowerPC/CoreAssembly.s (limited to 'Public/Developer/SystemLib/PowerPC/CoreAssembly.s') 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 + -- cgit v1.2.3