Use asserts - so fatal asserts will halt the system and if fatal-asserts are not set, the system will continue.
- coreboot needs better document on asserts and error handling.
- Julius will try to work on this. Angel can help.
- Martin to add documentation to the header files so that information about assert() and die() for IDEs that support this feature.
After thinking about this for a bit I thought it would make most sense to add it to the coding style (instead of a separate document), and combine it all into one section about general error handling guidelines. Here's a draft proposal, let me know what you think: https://review.coreboot.org/70775