RTEMS | bsps/shared/acpi: Use vprintk for AcpiOsPrintf (!1483)
Yang Zhang (@Chloe)
gitlab at rtems.org
Thu Sep 10 10:04:24 UTC 2026
Yang Zhang created a merge request: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1483
Project:Branches: Chloe/rtems:fix-acpi-early-print to rtems/rtos/rtems:main
Author: Yang Zhang
## Summary
bsps/shared/acpi: Use vprintk for AcpiOsPrintf
AcpiOsPrintf() and AcpiOsVprintf() used vprintf(), which relies on
standard I/O and newlib reentrancy structures.
When acpi_tables_initialize() is called from bsp_start(), the system
has not completed initialization and no thread is executing yet.
Calling vprintf() at this stage attempts to read libc_reent via a null
pointer, which on x86_64 targets causes a triple fault crash during boot.
Use vprintk() from <rtems/bspIo.h> instead of vprintf() to route ACPICA
OSL output through the early polled kernel character device.
Fixes #5751.
## Generative AI
<!-- If you have used AI please use the "AI Contribution" template otherwise leave this blank see our fulls statement at https://www.rtems.org/generative-ai/-->
<!-- Default settings, if it is a dropdown it will set after submission -->
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1483
You're receiving this email because of your account on gitlab.rtems.org. Unsubscribe from this thread: https://gitlab.rtems.org/-/namespace/49/sent_notifications/5-c3zkn4g6ea7rprs8zh45riiab-1d/unsubscribe | Manage all notifications: https://gitlab.rtems.org/-/profile/notifications | Help: https://gitlab.rtems.org/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260910/a6e7bfbb/attachment.htm>
More information about the bugs
mailing list