console: Add weak method to notify about death

Hardware / Coreboot - Patrick Rudolph [das-labor.org] - 14 August 2017 07:01 EDT

Call weak method die_notify.

The method should be overwritten in mainboard directory to signal that a fatal error had occurred. On boards that do share the same EC and where the EC is capable of controlling LEDs or a buzzer the method can be overwritten in EC directory instead.

Tested on Lenovo T500.

Change-Id: I71f8ddfc96047e8a0d39f084588db1fe2f251612

4b7b18d console: Add weak method to notify about death
src/console/die.c | 11 +++++++++++
src/include/console/console.h | 6 ++++++
2 files changed, 17 insertions(+)

Upstream: review.coreboot.org


  • Share