diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-01-06 09:14:11 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-01-06 09:14:11 +0100 |
| commit | 5339d016c07bf717ee388f4feb73544087324af0 (patch) | |
| tree | 94be6f67ed626091f24aee24ec3b3be03d01e4e7 /HALKit/PowerPC/CoreContextSwitchPowerPC.s | |
git: port from mercurial repo.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'HALKit/PowerPC/CoreContextSwitchPowerPC.s')
| -rw-r--r-- | HALKit/PowerPC/CoreContextSwitchPowerPC.s | 20 |
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 |
