summaryrefslogtreecommitdiff
path: root/include/common.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2011-08-12 15:50:32 -0700
committerSimon Glass <sjg@chromium.org>2011-08-29 10:59:33 -0700
commit6539b64d87a18763d551b9d49603852c07be2916 (patch)
tree9bbbe0688c138bb4cc9abaef166ed3a9ee2a6b92 /include/common.h
parent39ca04024b9c9e5671143c3d390222bc2f9dabb3 (diff)
Add board_panic_no_console to deal with early critical errors
Change-Id: I1e1cc76214cdb45399cec090677d3164ca2d33eb Reviewed-on: http://gerrit.chromium.org/gerrit/6065 Reviewed-by: Mike Frysinger <vapier@chromium.org> Reviewed-by: Anton Staaf <robotboy@chromium.org> Tested-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/common.h')
-rw-r--r--include/common.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h
index df8db31499..301194148b 100644
--- a/include/common.h
+++ b/include/common.h
@@ -274,6 +274,14 @@ int last_stage_init(void);
extern ulong monitor_flash_len;
int mac_read_from_eeprom(void);
+/*
+ * Called during a panic() when no console is available. The board should do
+ * its best to get a message to the user any way it can. This function should
+ * return if it can, in which case the system will either hang or reset.
+ * See panic().
+ */
+void board_panic_no_console(const char *str);
+
/* common/flash.c */
void flash_perror (int);