From cc8665eacc389318191aa6fe1b04b29580cc84ae Mon Sep 17 00:00:00 2001 From: Keith Short Date: Tue, 14 May 2019 13:38:56 -0600 Subject: console: Add new function die_with_post_code() Add a new helper function die_with_post_code() that generates a post code and an error string prior to halting the CPU. BUG=b:124401932 BRANCH=sarien TEST=build coreboot for sarien and arcada platforms Change-Id: I87551d60b253dc13ff76f7898c1f112f573a00a2 Signed-off-by: Keith Short Reviewed-on: https://review.coreboot.org/c/coreboot/+/32838 Reviewed-by: Martin Roth Reviewed-by: Aaron Durbin Reviewed-by: Furquan Shaikh Tested-by: build bot (Jenkins) --- src/include/console/console.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/include/console/console.h') diff --git a/src/include/console/console.h b/src/include/console/console.h index ed10807c9a..082ba29be8 100644 --- a/src/include/console/console.h +++ b/src/include/console/console.h @@ -43,6 +43,7 @@ void post_log_clear(void); /* this function is weak and can be overridden by a mainboard function. */ void mainboard_post(u8 value); void __noreturn die(const char *msg); +void __noreturn die_with_post_code(uint8_t value, const char *msg); /* * This function is weak and can be overridden to provide additional -- cgit v1.2.3