summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/vboot/vbnv.c4
-rw-r--r--src/vboot/vbnv.h2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/vboot/vbnv.c b/src/vboot/vbnv.c
index 6667825f46..3eaa0ad4b2 100644
--- a/src/vboot/vbnv.c
+++ b/src/vboot/vbnv.c
@@ -58,7 +58,7 @@ static uint8_t crc8_vbnv(const uint8_t *data, int len)
return (uint8_t) (crc >> 8);
}
-static void reset_vbnv(uint8_t *vbnv_copy)
+void vbnv_reset(uint8_t *vbnv_copy)
{
memset(vbnv_copy, 0, VBOOT_VBNV_BLOCK_SIZE);
}
@@ -100,7 +100,7 @@ void read_vbnv(uint8_t *vbnv_copy)
/* Check data for consistency */
if (!verify_vbnv(vbnv_copy))
- reset_vbnv(vbnv_copy);
+ vbnv_reset(vbnv_copy);
}
/*
diff --git a/src/vboot/vbnv.h b/src/vboot/vbnv.h
index 5e5160a992..540f25c2ca 100644
--- a/src/vboot/vbnv.h
+++ b/src/vboot/vbnv.h
@@ -28,6 +28,8 @@ void set_recovery_mode_into_vbnv(int recovery_reason);
int vboot_wants_oprom(void);
/* Initialize and read vbnv. This is used in the main vboot logic path. */
void vbnv_init(uint8_t *vbnv_copy);
+/* Reset vbnv snapshot to a known state. */
+void vbnv_reset(uint8_t *vbnv_copy);
/* CMOS backend */
void read_vbnv_cmos(uint8_t *vbnv_copy);