Skip to content

Commit

Permalink
arch/tricore: fix build error on tricore
Browse files Browse the repository at this point in the history
ctc E333: ["arch/tricore/src/common/tricore_svcall.c" 123/23] incompatible types at assignment
ctc E333: ["arch/tricore/src/common/tricore_doirq.c" 98/39] incompatible types at argument #2

Signed-off-by: chao an <[email protected]>
  • Loading branch information
anchao authored and xiaoxiang781216 committed Sep 24, 2024
1 parent f44a9c4 commit a01d9e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/tricore/src/common/tricore_doirq.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ IFX_INTERRUPT_INTERNAL(tricore_doirq, 0, 255)

g_running_tasks[this_cpu()] = this_task();

__mtcr(CPU_PCXI, up_current_regs());
__mtcr(CPU_PCXI, (uintptr_t)up_current_regs());
__isync();
}

Expand Down
2 changes: 1 addition & 1 deletion arch/tricore/src/common/tricore_svcall.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ void tricore_svcall(volatile void *trap)

g_running_tasks[this_cpu()] = this_task();

regs[REG_UPCXI] = up_current_regs();
regs[REG_UPCXI] = (uintptr_t)up_current_regs();

__isync();
}
Expand Down

0 comments on commit a01d9e9

Please sign in to comment.