summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/vboot_hash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/vboot_hash.c b/common/vboot_hash.c
index 3362917e0d..f05d1405bc 100644
--- a/common/vboot_hash.c
+++ b/common/vboot_hash.c
@@ -113,7 +113,7 @@ static void vboot_hash_init(void)
data_size = tag->size;
} else {
/* Start computing the hash of firmware A */
- vboot_hash_start(CONFIG_FW_RW_OFF - CONFIG_FLASH_BASE,
+ vboot_hash_start(CONFIG_FW_RW_OFF,
system_get_image_used(SYSTEM_IMAGE_RW),
NULL, 0);
}
@@ -183,7 +183,7 @@ DECLARE_HOOK(HOOK_SYSJUMP, vboot_hash_preserve_state, HOOK_PRIO_DEFAULT);
static int command_hash(int argc, char **argv)
{
- uint32_t offset = CONFIG_FW_RW_OFF - CONFIG_FLASH_BASE;
+ uint32_t offset = CONFIG_FW_RW_OFF;
uint32_t size = CONFIG_FW_RW_SIZE;
char *e;