| Index: host/lib/crossystem.c
|
| diff --git a/host/lib/crossystem.c b/host/lib/crossystem.c
|
| index 9428ba526431fcef33ac2242cc3059cd7dc07ccc..da9d80b53a42a66e203a946add4f98ba29089faf 100644
|
| --- a/host/lib/crossystem.c
|
| +++ b/host/lib/crossystem.c
|
| @@ -484,6 +484,10 @@ int VbGetSystemPropertyInt(const char* name) {
|
| } else if (!strcasecmp(name,"savedmem_size")) {
|
| return (-1 == ReadFileInt(ACPI_CHSW_PATH) ? -1 : 0x00100000);
|
| }
|
| + /* NV storage values with no defaults for older BIOS. */
|
| + else if (!strcasecmp(name,"tried_fwb")) {
|
| + value = VbGetNvStorage(VBNV_FW_USED_TRY_B);
|
| + }
|
| /* NV storage values. If unable to get from NV storage, fall back to the
|
| * CMOS reboot field used by older BIOS. */
|
| else if (!strcasecmp(name,"recovery_request")) {
|
| @@ -548,6 +552,15 @@ const char* VbGetSystemPropertyString(const char* name, char* dest, int size) {
|
| default:
|
| return NULL;
|
| }
|
| + } else if (!strcasecmp(name,"kernkey_vfy")) {
|
| + switch(VbGetNvStorage(VBNV_FW_VERIFIED_KERNEL_KEY)) {
|
| + case 0:
|
| + return "hash";
|
| + case 1:
|
| + return "sig";
|
| + default:
|
| + return NULL;
|
| + }
|
| } else
|
| return NULL;
|
| }
|
|
|