![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <arch/mmio.h>
#include <console/console.h>
#include <cpu/x86/smm.h>
#include <types.h>
#include "txt.h"
#include "txt_getsec.h"
#include "txt_register.h"
Go to the source code of this file.
Functions | |
const char * | intel_txt_processor_error_type (uint8_t type) |
static void | log_txt_error (const char *phase) |
Logs microcode or SINIT ACM errors. More... | |
void | intel_txt_log_bios_acm_error (void) |
Dump useful informaation about the BIOS ACM state. More... | |
void | txt_dump_acm_info (const struct acm_header_v0 *acm_header) |
Dump information about the provided ACM. More... | |
void | txt_dump_chipset_info (void) |
Dump information about the chipset's TXT capabilities. More... | |
void | txt_dump_regions (void) |
void | txt_dump_getsec_parameters (void) |
Dump useful informaation about the BIOS ACM state.
Should run right after console_init() in romstage. Resets the platform if TXT reset is active and MLE cannot be established.
Definition at line 58 of file logging.c.
References ACMERROR_TXT_VALID, BIOS_CRIT, BIOS_INFO, intel_txt_log_acm_error(), log_txt_error(), printk, read32(), read64(), read8(), TXT_BIOSACM_ERRORCODE, TXT_ERROR, TXT_ESTS, TXT_ESTS_TXT_RESET_STS, and TXT_SPAD.
Referenced by init_intel_txt().
const char* intel_txt_processor_error_type | ( | uint8_t | type | ) |
Definition at line 12 of file logging.c.
References ARRAY_SIZE, and type.
Referenced by intel_cbnt_log_registers(), and log_txt_error().
|
static |
Logs microcode or SINIT ACM errors.
Does not log SBIOS ACM errors.
Definition at line 36 of file logging.c.
References ACMERROR_TXT_EXTERNAL, ACMERROR_TXT_VALID, BIOS_ERR, intel_txt_processor_error_type(), printk, read64(), TXT_ERROR, and TXT_ERROR_MASK.
Referenced by intel_txt_log_bios_acm_error().
void txt_dump_acm_info | ( | const struct acm_header_v0 * | acm_header | ) |
Dump information about the provided ACM.
Definition at line 94 of file logging.c.
References ACM_FORMAT_FLAGS_DEBUG, ACM_FORMAT_FLAGS_NPW, ACM_FORMAT_FLAGS_PW, ACM_FORMAT_SIZE_128KB, ACM_FORMAT_SIZE_256KB, ACM_FORMAT_SIZE_64KB, BIOS_INFO, CHIPSET_ACM, acm_header_v0::chipset_id, acm_header_v0::date, acm_header_v0::flags, acm_header_v0::header_len, acm_header_v0::header_version, info, INTEL_ACM_VENDOR, acm_header_v0::module_sub_type, acm_header_v0::module_type, acm_header_v0::module_vendor, NULL, printk, acm_header_v0::scratch_size, acm_header_v0::se_svn, acm_header_v0::size, and acm_header_v0::txt_svn.
Referenced by intel_txt_prepare_bios_acm(), and txt_heap_push_bdr_for_two_acms().
Dump information about the chipset's TXT capabilities.
Definition at line 177 of file logging.c.
References BIOS_INFO, intel_txt_chipset_is_production_fused(), printk, read32(), read64(), TXT_ACM_KEY_HASH, TXT_ACM_KEY_HASH_LEN, and TXT_DIDVID.
Referenced by init_intel_txt().
Definition at line 225 of file logging.c.
References BIOS_DEBUG, BIOS_WARNING, getsec_parameter(), GETSEC_PARAMS_TXT_EXT_CRTM_SUPPORT, GETSEC_PARAMS_TXT_EXT_MACHINE_CHECK, and printk.
Referenced by intel_txt_prepare_txt_env().
Definition at line 191 of file logging.c.
References BIOS_DEBUG, txt_biosdataregion::bios_sinit_size, txt_biosdataregion::lcp_pd_base, txt_biosdataregion::lcp_pd_size, MiB, NULL, printk, read64(), smm_region(), TXT_HEAP_BASE, TXT_HEAP_SIZE, TXT_MSEG_BASE, TXT_MSEG_SIZE, TXT_SINIT_BASE, and TXT_SINIT_SIZE.
Referenced by lockdown_intel_txt(), and mainboard_romstage_entry().