summaryrefslogtreecommitdiffhomepage
path: root/HALKit/PowerPC/CoreContextSwitchPowerPC.s
diff options
context:
space:
mode:
Diffstat (limited to 'HALKit/PowerPC/CoreContextSwitchPowerPC.s')
-rw-r--r--HALKit/PowerPC/CoreContextSwitchPowerPC.s20
1 files changed, 20 insertions, 0 deletions
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