SHIVAM DEOLANKAR commented: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5550#note_148532


I tried analysing and making some changes in start.S and bspsmp.c and 
clockdrv.c which were the files involved in this issue and here were my findings

Commented out early interrupt enabling in `bspsmp.c` to check if premature 
interrupts caused the issue. The hang persisted, ruling out simple interrupt 
timing as the root cause.

Reverted exception routing from direct handler to `_RISCV_Vector_table`. This 
ensured proper dispatching but did not resolve the looping issue.

Disabled timer interrupt initialization to test if a timer storm was causing 
repeated traps. The system still hung, proving the issue was not timer-related.

Adjusted stack pointer initialization from `_begin` to `_end` to avoid invalid 
memory access. No improvement was observed, ruling out basic stack misplacement.

Hypothesized that uninitialized memory could cause faults and tested reordering 
BSS clearing. The issue persisted, so memory initialization order was not the 
cause.

I would love some help on this issue.

-- 
View it on GitLab: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5550#note_148532
You're receiving this email because of your account on gitlab.rtems.org.


_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to