Introduce a new CBMEM ID, CBMEM_ID_BOOT_MODE (0x444D5442, "BTMD"), to provide a dedicated storage location for the system's detected boot mode (e.g., normal boot, low-battery, off-mode boot etc). Storing the boot mode in CBMEM ensures that the initial detection performed early in the boot process (e.g., in romstage by reading PMIC logs) is securely passed to subsequent stages like ramstage, where different boot modes require distinct logic paths. Key changes: - Define CBMEM_ID_BOOT_MODE in cbmem_id.h. - Add "BOOT MODE" entry to the CBMEM_ID_TO_NAME_TABLE. BUG=b:439819922 TEST=Verify boot mode stored in CBMEM. Change-Id: I7ebf29385a99ac1be491bfefe1c74c8c9e58b55d Signed-off-by: Kapil Porwal <kapilporwal@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/90175 Reviewed-by: Subrata Banik <subratabanik@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> |
||
|---|---|---|
| .. | ||
| include/commonlib/bsd | ||
| cbfs_mcache.c | ||
| cbfs_private.c | ||
| elog.c | ||
| gcd.c | ||
| ipchksum.c | ||
| lz4.c.inc | ||
| lz4_wrapper.c | ||
| string.c | ||