mirror of
https://github.com/apache/nuttx.git
synced 2026-10-15 18:20:22 +00:00
arch/x86_64:Fix variable used before assignment
Signed-off-by: liwenxiang1 <liwenxiang1@xiaomi.com>
This commit is contained in:
parent
4752ef3653
commit
eb722794b5
1 changed files with 1 additions and 1 deletions
|
|
@ -98,6 +98,7 @@ static uint64_t *common_handler(int irq, uint64_t *regs)
|
|||
|
||||
/* Update scheduler parameters */
|
||||
|
||||
cpu = this_cpu();
|
||||
nxsched_suspend_scheduler(g_running_tasks[cpu]);
|
||||
nxsched_resume_scheduler(this_task());
|
||||
|
||||
|
|
@ -106,7 +107,6 @@ static uint64_t *common_handler(int irq, uint64_t *regs)
|
|||
* crashes.
|
||||
*/
|
||||
|
||||
cpu = this_cpu();
|
||||
tcb = current_task(cpu);
|
||||
g_running_tasks[cpu] = tcb;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue