zhangyu-duck opened a new pull request, #21511:
URL: https://github.com/apache/nuttx/pull/21511

   ## Summary
   
   Rework the TriCore startup using the common `head.S`/`head.asm` and `boot.c` 
structure used by other architectures. CPU0 initializes `.data`/`.bss` and 
enters the primary boot path, while secondary CPUs enter the secondary boot 
path. Add TC3xx/TC4xx chip-specific boot hooks and update the board linker 
scripts for the new startup.
   
   The first two commits provide the CMake HEAD-source handling and TASKING 
assembly preprocessing required by the final boot commit.
   
   ## Impact
   
   TriCore TC3xx and TC4xx now use the NuttX assembly entry and boot flow 
instead of the previous per-core `coreN_main()` startup. Both GNU and TASKING 
assembly entry paths and the corresponding linker scripts are supported. No 
interface changes are introduced for applications.
   
   ## Testing
   
   Host: Ubuntu Linux, x86_64, CMake.
   
   The following board/toolchain combinations were built, flashed, and tested 
over the serial console. Both `hello` and `ostest` passed in all four 
configurations:
   
   | Board | Toolchain | hello | ostest |
   |---|---|---|---|
   | A2G TC397 5V TFT (`a2g-tc397-5v-tft:nsh`) | GNU | PASS | PASS |
   | A2G TC397 5V TFT (`a2g-tc397-5v-tft:nsh`) | TASKING VX | PASS | PASS |
   | TriBoard TC4X9 COM (`triboard_tc4x9_com:nsh`) | GNU | PASS | PASS |
   | TriBoard TC4X9 COM (`triboard_tc4x9_com:nsh`) | TASKING SmartCode | PASS | 
PASS |
   
   Each run verified the serial `hello` output and successful completion of 
`ostest`.
   
   All three commits also pass `tools/checkpatch.sh -c -u -m -g master..HEAD` 
and `git diff --check master..HEAD`.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to