diff options
-rw-r--r-- | host/lib/crossystem.c | 4 | ||||
-rw-r--r-- | utility/crossystem_main.c | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/host/lib/crossystem.c b/host/lib/crossystem.c index 1c3fcc25..7ad5d805 100644 --- a/host/lib/crossystem.c +++ b/host/lib/crossystem.c @@ -359,6 +359,8 @@ int VbGetSystemPropertyInt(const char* name) { value = VbGetNvStorage(VBNV_KERNEL_FIELD); if (value != -1) value &= KERN_NV_FWUPDATE_TRIES_MASK; + } else if (!strcasecmp(name,"loc_idx")) { + value = VbGetNvStorage(VBNV_LOCALIZATION_INDEX); } /* Other parameters */ else if (!strcasecmp(name,"cros_debug")) { @@ -432,6 +434,8 @@ int VbSetSystemPropertyInt(const char* name, int value) { kern_nv &= ~KERN_NV_FWUPDATE_TRIES_MASK; kern_nv |= (value & KERN_NV_FWUPDATE_TRIES_MASK); return VbSetNvStorage(VBNV_KERNEL_FIELD, kern_nv); + } else if (!strcasecmp(name,"loc_idx")) { + return VbSetNvStorage(VBNV_LOCALIZATION_INDEX, value); } return -1; diff --git a/utility/crossystem_main.c b/utility/crossystem_main.c index 7289ad1d..4cf875a8 100644 --- a/utility/crossystem_main.c +++ b/utility/crossystem_main.c @@ -66,6 +66,7 @@ const Param sys_param_list[] = { "Times to try OS firmware update (writable, inside kern_nv)"}, {"vbtest_errfunc", CAN_WRITE, "Verified boot test error function (writable)"}, {"vbtest_errno", CAN_WRITE, "Verified boot test error number (writable)"}, + {"loc_idx", CAN_WRITE, "Localization index for firmware screens (writable)"}, /* Fields not shown in a print-all list */ {"vdat_lfdebug", IS_STRING|NO_PRINT_ALL, "LoadFirmware() debug data (not in print-all)"}, |