From ef71b80d3df1969a2be85eadf2d83cd85745469d Mon Sep 17 00:00:00 2001 From: Amlal Date: Sun, 8 Sep 2024 22:19:00 +0200 Subject: A lot: - Changed task banks are being switched in the kernel. - Changed user mode switch mode, improved it to push rflags. - User proc will start the scheduler when it's being jumped on. Signed-off-by: Amlal --- dev/ZKA/HALKit/POWER/HalContextSwitchPowerPC.s | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'dev/ZKA/HALKit/POWER') diff --git a/dev/ZKA/HALKit/POWER/HalContextSwitchPowerPC.s b/dev/ZKA/HALKit/POWER/HalContextSwitchPowerPC.s index 9a9c3aa6..588de23a 100644 --- a/dev/ZKA/HALKit/POWER/HalContextSwitchPowerPC.s +++ b/dev/ZKA/HALKit/POWER/HalContextSwitchPowerPC.s @@ -7,10 +7,10 @@ .align 4 .type name, @function .text -.globl mp_do_context_switch +.globl mp_do_user_switch /* r3 (3) = assigner stack, r4 (4) = assignee stack */ -mp_do_context_switch: +mp_do_user_switch: lwz 0(%4), 0(%3) lwz 4(%4), 4(%3) lwz 8(%4), 8(%3) @@ -24,5 +24,7 @@ mp_do_context_switch: lwz 34(%4), 34(%3) lwz 38(%4), 38(%3) + /* also change exception level */ + /* we are done here, the assignee should start executing code now. */ blr -- cgit v1.2.3