From 5339d016c07bf717ee388f4feb73544087324af0 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sat, 6 Jan 2024 09:14:11 +0100 Subject: git: port from mercurial repo. Signed-off-by: Amlal El Mahrouss --- HALKit/PowerPC/CoreContextSwitchPowerPC.s | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 HALKit/PowerPC/CoreContextSwitchPowerPC.s (limited to 'HALKit/PowerPC/CoreContextSwitchPowerPC.s') diff --git a/HALKit/PowerPC/CoreContextSwitchPowerPC.s b/HALKit/PowerPC/CoreContextSwitchPowerPC.s new file mode 100644 index 00000000..96ef6d80 --- /dev/null +++ b/HALKit/PowerPC/CoreContextSwitchPowerPC.s @@ -0,0 +1,20 @@ +/* + * ======================================================== + * + * hCore + * Copyright Mahrouss Logic, all rights reserved. + * + * ======================================================== + */ + +.align 4 +.type name, @function +.text +.globl rt_do_context_switch + +/* r3 = assigner stack, r4 = assignee stack */ +rt_do_context_switch: + + lwz %r4, 0(%r3) + + blr -- cgit v1.2.3