Skip to content

Commit a01d9e9

Browse files
anchaoxiaoxiang781216
authored andcommitted
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 <anchao@lixiang.com>
1 parent f44a9c4 commit a01d9e9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

arch/tricore/src/common/tricore_doirq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ IFX_INTERRUPT_INTERNAL(tricore_doirq, 0, 255)
9595

9696
g_running_tasks[this_cpu()] = this_task();
9797

98-
__mtcr(CPU_PCXI, up_current_regs());
98+
__mtcr(CPU_PCXI, (uintptr_t)up_current_regs());
9999
__isync();
100100
}
101101

arch/tricore/src/common/tricore_svcall.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ void tricore_svcall(volatile void *trap)
120120

121121
g_running_tasks[this_cpu()] = this_task();
122122

123-
regs[REG_UPCXI] = up_current_regs();
123+
regs[REG_UPCXI] = (uintptr_t)up_current_regs();
124124

125125
__isync();
126126
}

0 commit comments

Comments
 (0)