mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
arch/tricore: Fix tricore arch build error
Fix the tircore arch build error introduced by PR17060 Signed-off-by: Chengdong Wang <wangchengdong@lixiang.com>
This commit is contained in:
parent
615f1f3f46
commit
0b1f774519
1 changed files with 4 additions and 3 deletions
|
|
@ -47,6 +47,7 @@
|
|||
IFX_INTERRUPT_INTERNAL(tricore_doirq, 0, 255)
|
||||
{
|
||||
struct tcb_s *running_task = g_running_tasks[this_cpu()];
|
||||
struct tcb_s *tcb;
|
||||
|
||||
#ifdef CONFIG_SUPPRESS_INTERRUPTS
|
||||
PANIC();
|
||||
|
|
@ -87,7 +88,7 @@ IFX_INTERRUPT_INTERNAL(tricore_doirq, 0, 255)
|
|||
|
||||
if (regs != up_current_regs())
|
||||
{
|
||||
running_task = this_task();
|
||||
tcb = this_task();
|
||||
|
||||
#ifdef CONFIG_ARCH_ADDRENV
|
||||
/* Make sure that the address environment for the previously
|
||||
|
|
@ -101,14 +102,14 @@ IFX_INTERRUPT_INTERNAL(tricore_doirq, 0, 255)
|
|||
|
||||
/* Update scheduler parameters */
|
||||
|
||||
nxsched_switch_context(*running_task, tcb);
|
||||
nxsched_switch_context(running_task, tcb);
|
||||
|
||||
/* Record the new "running" task when context switch occurred.
|
||||
* g_running_tasks[] is only used by assertion logic for reporting
|
||||
* crashes.
|
||||
*/
|
||||
|
||||
g_running_tasks[this_cpu()] = running_task;
|
||||
g_running_tasks[this_cpu()] = tcb;
|
||||
|
||||
__mtcr(CPU_PCXI, (uintptr_t)up_current_regs());
|
||||
__isync();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue