Commit b7412fc1 authored by 陈睿玮's avatar 陈睿玮
Browse files

fix(smp): fix bug that current_task return a ref that points at wrong task when smp is running

current_task returns a ref, that points to the task of local hart.
However, when smp is running, the schedule may change to a different
hart, in this way, `let task = current_task;`, this `task` variable
still points to the origin hart's task, but origin hart and hart running
now may be different, which will cause trouble.
parent 4adadf2e
Showing with 49 additions and 46 deletions
+49 -46
Supports Markdown
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