Index: host/lib/crossystem.c |
diff --git a/host/lib/crossystem.c b/host/lib/crossystem.c |
index 1c3fcc256a115827a375fa1bb1ccbcb368e9628e..7ad5d8054fab6556d625bfe41e78ea69e3a20931 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; |