Rename br_image_addr to br_image_off.
The boot response returns a flash offset, not a flash address. This is
causing confusion and leading to crashes on some platforms which don't
have flash at address 0.
Rename the field to make it more clear what its purpose is; future
patches can start fixing up usages.
Signed-off-by: Marti Bolivar <marti.bolivar@linaro.org>
diff --git a/boot/mynewt/src/main.c b/boot/mynewt/src/main.c
index 9cf4737..2af6680 100755
--- a/boot/mynewt/src/main.c
+++ b/boot/mynewt/src/main.c
@@ -70,7 +70,7 @@
rc = boot_go(&rsp);
assert(rc == 0);
- hal_system_start((void *)(rsp.br_image_addr + rsp.br_hdr->ih_hdr_size));
+ hal_system_start((void *)(rsp.br_image_off + rsp.br_hdr->ih_hdr_size));
return 0;
}