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

   *Note: Please adhere to [Contributing 
Guidelines](https://github.com/apache/nuttx/blob/master/CONTRIBUTING.md).*
   
   ## Summary
   
   Rework TriCore trap handling: arch native trap vector table without iLLD, 
enter svcall/trapcall by jump, FCU (FCX=0) recovery, bus error hook, trap 
class/TIN in panic message, PSTR/DSTR/DATR/DEADD capture for coredump, and trap 
code cleanup for smaller codesize.
   
   ## Impact
   
   TriCore architecture only (arch/tricore and tricore board linker scripts), 
plus two TriCore intrinsics added to the tools/nxstyle.c whitelist. No impact 
on other architectures.
   
   ## Testing
   
   Built triboard_tc4x9_com:nsh with tricore-elf-gcc on Ubuntu host, each 
commit passes checkpatch and build.
   Tested on tc4xx board, runs normally, ostest passes, and the trap cases 
(null/bus/align/illegal opcode/trapv/trapsv/call depth overflow/FCU/bad 
syscall) report the expected class and TIN:
   
   ```
   nsh> uname -a
   NuttX 13.1.0 81620ef0a14 Oct 29 2026 16:59:29 tricore triboard_tc4x9_com
   nsh> traptest bus
   tricore_trap_alert: PANIC!!! System Bus Error Trap:
   tricore_trap_alert:  class 4 TID: 2 regs: 0x700322c0
   tricore_trap_alert:  Data Access Synchronous Error
   dump_assert_info: Assertion failed Trap c=4 t=2: at file: :0 task: traptest 
process: traptest 0x80033086
   tricore_dump_trapctrl: PSTR:00000000      DSTR:00000004      DATR:00000000   
   DEADD:0FFFFFF0
   ```
   


-- 
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