Commit fd11ff73 authored by Michal Simek's avatar Michal Simek Committed by Michal Simek

microblaze: Fix bug with schedule_tail

Signed-off-by: default avatarMichal Simek <monstr@monstr.eu>
parent 77b67063
...@@ -479,7 +479,7 @@ C_ENTRY(sys_fork_wrapper): ...@@ -479,7 +479,7 @@ C_ENTRY(sys_fork_wrapper):
saved context). */ saved context). */
C_ENTRY(ret_from_fork): C_ENTRY(ret_from_fork):
bralid r15, schedule_tail; /* ...which is schedule_tail's arg */ bralid r15, schedule_tail; /* ...which is schedule_tail's arg */
add r3, r5, r0; /* switch_thread returns the prev task */ add r5, r3, r0; /* switch_thread returns the prev task */
/* ( in the delay slot ) */ /* ( in the delay slot ) */
brid ret_from_trap; /* Do normal trap return */ brid ret_from_trap; /* Do normal trap return */
add r3, r0, r0; /* Child's fork call should return 0. */ add r3, r0, r0; /* Child's fork call should return 0. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment