From 788e390cea6fa38ae14cbf65cbc7ab908c42a8b4 Mon Sep 17 00:00:00 2001 From: chao an Date: Tue, 24 Sep 2024 20:31:57 +0800 Subject: [PATCH] arch/tricore: fix build error on tricore 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 --- arch/tricore/src/common/tricore_doirq.c | 2 +- arch/tricore/src/common/tricore_svcall.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/tricore/src/common/tricore_doirq.c b/arch/tricore/src/common/tricore_doirq.c index 751ec81f9db81..f3ed8151ea702 100644 --- a/arch/tricore/src/common/tricore_doirq.c +++ b/arch/tricore/src/common/tricore_doirq.c @@ -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(); } diff --git a/arch/tricore/src/common/tricore_svcall.c b/arch/tricore/src/common/tricore_svcall.c index eeacd121a1225..1fa5d2d6a943a 100644 --- a/arch/tricore/src/common/tricore_svcall.c +++ b/arch/tricore/src/common/tricore_svcall.c @@ -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(); }