path: root/include
diff options
authorNishanth Menon <nm@ti.com>2011-09-20 18:52:28 -0700
committerPraneeth Bajjuri <praneeth@ti.com>2011-09-20 18:53:25 -0700
commit27ef729bc02a6c282598c8068c7ae00a211376ef (patch)
tree0ec332b04f0e3b827bd92753f8f7c9d8fb630339 /include
parent9b408c50514e7d47eae35da2c7f91165eadc08f5 (diff)
panic: Add board ID to panic output
At times, it is necessary for boards to provide some additional information as part of panic logs. Provide information on the board hardware as part of panic logs. It is safer to print this information at the very end in case something bad happens as part of the information retrieval itself. To use this, set global mach_panic_string to an appropriate string in the board file. Change-Id: Id12cdda87b0cd2940dd01d52db97e6162f671b4d Signed-off-by: Nishanth Menon <nm@ti.com>
Diffstat (limited to 'include')
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h
index 46ac9a50528..54bf5a471e1 100644
--- a/include/linux/kernel.h
+++ b/include/linux/kernel.h
@@ -744,4 +744,7 @@ struct sysinfo {
char _f[20-2*sizeof(long)-sizeof(int)]; /* Padding: libc5 uses this.. */
+/* To identify board information in panic logs, set this */
+extern char *mach_panic_string;