Repository navigation
arch/tricore: Optimize the trap/interrupt vectors.s codestyle and small improvment - #21951
Conversation
|
My understanding is that we should submit our work on a module-by-module basis. Since you have already merged the 'trap' and 'irq' modules, I will build upon that; if there are any further changes to these modules on your end, please submit them. Given our limited time, we cannot wait for everything to be merged. As I see it, our respective changes are in different areas, so there shouldn't be many conflicts. |
As long as the changes never conflicts we can move on, but changes are directly creates unnecessary conflicts on my PR and taking further delay. cf4705a commit on this PR is duplicate effort of #21940, I reported the current upstream is broken (build failure) and created PR added you as review. Instead of review, the changes duplicated in this PR without any information of build failure or fixes on PR description. |
@ssekar15 could you move the patch which pass the review out of the huge pr? so, we can move fast. |
@zhangyu-duck please fix the conflict, cf4705a is merged. |
cf4705a to
30e34af
Compare
done and rebase |
|
@ssekar15 please review the patch again. |
ssekar15
left a comment
There was a problem hiding this comment.
NACK. This kind of rework is creating serious of huge conflict and problem with current Nuttx support. Have you tested with current upstream base HEAD or all your test results are based on downstream tree?
AS: common/tasking/tricore_vectors.asm
astc E301: ["common/tasking/tricore_vectors.asm" 32] unknown C preprocessor directive used
astc E301: ["common/tasking/tricore_vectors.asm" 33] unknown C preprocessor directive used
astc E139: ["common/tasking/tricore_vectors.asm" 117] cannot emit expression in object file, replaced with integral value '0'
make[1]: *** [Makefile:135: tricore_vectors.o] Error 1
tcpu = up_cpu_index() is 0 without ARCH_HAVE_MULTICPU (AMP): every core reports CPU0. Before, the entry read CORE_ID. Most of these changes are aligned with your downstream BMP instead of current NuttX.
Unnecessary changes :
Renames .intvec -> .inttable, tricore_int_vector -> tricore_inttab, tricore_trap_vectors_cpuN -> tricore_traptab; all four linker scripts touched, collides with #21546.
Implements the single trap table we deferred is in my TODO list as part of review comments from my PR which conflict the work.
This objection is invalid. Reason 1: I have already addressed the multi-core issue—I will submit the relevant code later—but the current approach is certainly better than hardcoding it to 0. |
#21510 what about merge this, but you disagree! |
exactly the problem is this PR doesn't mentioned anything about it dependency or build failure with current master.
Never against the improvement, as I have been struggling with the basic cleanup PR series to be merge the improvement shall be later which directly conflicting. you proposed to speed up the review process so the split PR of our changes will get merged and you will work on top of it.
#21510 what about merge this, but you disagree! Because your PR is duplicated of our initial PR. Until yesterday this PR do have duplicate of my fix PR. All these circle backs to one point where our PR is still floating and your new PR or duplicate PR work creates more and more conflict enough to delay further. |
In that case, please extract your C pre-processing logic and merge it separately. As for your objection to the PR regarding this trap, I don’t find it well-founded. many pr waiting for push, please split your C pre-processing and i will rebase on your this pr |
d31fd0f to
d6b74a8
Compare
|
@ssekar15 do you have more comment? |
Read CORE_ID directly instead of using the iLLD helper. Clamp the TC3xx core index to 5 to match IfxCpu_getCoreIndex(). Signed-off-by: zhangyuan29 <zhangyuan29@xiaomi.com> Signed-off-by: zhangyu117 <zhangyu117@xiaomi.com>
Use a single trap vector table and a common register-based trap entry for both toolchains. Move trap declarations into tricore_vectors.h and let FCU recovery use a registered CSA pool. Signed-off-by: zhangyu117 <zhangyu117@xiaomi.com> Co-Authored-By: Kimi <noreply@moonshot.cn>
d6b74a8 to
b57fe21
Compare
Summary
Unify the TriCore trap and interrupt vector implementation across GCC and TASKING.
and clean up comments and formatting.
fixed array in the trap implementation.
trap structure.
Impact
TriCore TC3xx and TC4xx trap and interrupt handling only.
Testing
hello: correctInternal Protection Error trap and null-address information.