summaryrefslogtreecommitdiffstats
path: root/src/include/cper.h
diff options
context:
space:
mode:
authorFrancois Toguo <francois.toguo.fotso@intel.com>2021-01-21 09:55:19 -0800
committerPatrick Georgi <pgeorgi@google.com>2021-02-04 10:21:02 +0000
commit522e0dbdaa46dde5363ad4c50a11938ae2f17a0d (patch)
tree7f4c2ddd84f8069b9f2fad2a9c0586ed3a959a5f /src/include/cper.h
parent5f30ae3714d7535d3ce061b30e3292c6ac62cb6f (diff)
downloadcoreboot-522e0dbdaa46dde5363ad4c50a11938ae2f17a0d.tar.gz
coreboot-522e0dbdaa46dde5363ad4c50a11938ae2f17a0d.tar.bz2
coreboot-522e0dbdaa46dde5363ad4c50a11938ae2f17a0d.zip
acpi: Add support for reporting CrashLog in BERT table
Crash Data are collected and sent to the OS via the ACPI BERT. BUG=None TEST=Built, and BERT successfully generated in the crashLog flow. Signed-off-by: Francois Toguo <francois.toguo.fotso@intel.com> Change-Id: I00e390d735d61beac2e89a726e39119d9b06b3df Signed-off-by: Nikunj A. Dadhania <nikunj.dadhania@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/49799 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Diffstat (limited to 'src/include/cper.h')
-rw-r--r--src/include/cper.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/include/cper.h b/src/include/cper.h
index b6d182e8eade..020ac41c77a6 100644
--- a/src/include/cper.h
+++ b/src/include/cper.h
@@ -370,6 +370,19 @@ typedef struct cper_ia32x64_ctx_x64state {
u16 tr;
} cper_ia32x64_ctx_x64state_t;
+#define FW_ERR_RECORD_ID_CRASHLOG_GUID \
+ GUID_INIT(0x8f87f311, 0xc998, 0x4d9e, \
+ 0xa0, 0xc4, 0x60, 0x65, 0x51, 0x8c, 0x4f, 0x6d)
+
+/* Firmware Error Record Reference, UEFI v2.8 sec N.2.10 */
+typedef struct cper_fw_err_rec_section {
+ u8 record_type;
+ u8 revision;
+ u8 reserved[6];
+ u64 record_id;
+ guid_t record_guid;
+} cper_fw_err_rec_section_t;
+
static inline cper_timestamp_t cper_timestamp(int precise)
{
cper_timestamp_t ts;