Kaben123 opened a new pull request, #21924:
URL: https://github.com/apache/nuttx/pull/21924
## Summary
After a panic the TX interrupt no longer drains the serial xmit ring buffer.
Panic-context syslog output bypasses the buffer through `uart_irqwritev()`
and
writes directly to the hardware, so log data that was buffered just before
the
panic is lost and the log order is broken.
`uart_writev()` now drains the xmit buffer to the hardware before calling
`uart_irqwritev()` when `OSINIT_IS_PANIC()`. The drain is skipped in normal
interrupt context to avoid adding latency there.
## Impact
Only the panic path changes. Normal interrupt-context and thread-context
writes
are unchanged.
## Testing
Host: Ubuntu 22.04 x86_64, GCC 13.1.0. Base: apache/nuttx master
5c1746778e8, apache/nuttx-apps master 7f4e5382d.
- `sim:nsh` builds without warnings (CMake and Make) and the console works
normally.
- `tools/checkpatch.sh -c -u -m -g` passes.
--
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]