Loading boot/zephyr/flash_map_extended.c +0 −13 Changes for boot/zephyr/flash_map_extended.c: 0 added lines, 13 removed lines. Original line number Diff line number Diff line Loading @@ -155,21 +155,8 @@ int flash_area_sector_from_off(off_t off, struct flash_sector *sector) uint8_t flash_area_get_device_id(const struct flash_area *fa) { uint8_t device_id; int rc; rc = BOOT_HOOK_FLASH_AREA_CALL(flash_area_get_device_id_hook, BOOT_HOOK_REGULAR, fa, &device_id); if (rc != BOOT_HOOK_REGULAR) { return device_id; } #if defined(CONFIG_ARM) return fa->fa_id; #else (void)fa; return FLASH_DEVICE_ID; #endif } #define ERASED_VAL 0xff Loading boot/zephyr/main.c +5 −15 Changes for boot/zephyr/main.c: 5 added lines, 15 removed lines. Original line number Diff line number Diff line Loading @@ -158,26 +158,16 @@ static void do_boot(struct boot_rsp *rsp) /* Get ram address for image */ vt = (struct arm_vector_table *)(rsp->br_hdr->ih_load_addr + rsp->br_hdr->ih_hdr_size); #else uintptr_t flash_base; int rc; const struct flash_area *fap; static uint32_t dst[2]; /* Jump to flash image */ rc = flash_area_open(rsp->br_flash_dev_id, &fap); rc = flash_device_base(rsp->br_flash_dev_id, &flash_base); assert(rc == 0); rc = flash_area_read(fap, rsp->br_hdr->ih_hdr_size, dst, sizeof(dst)); assert(rc == 0); #ifndef CONFIG_ASSERT /* Enter a lock up as asserts are disabled */ if (rc != 0) { while (1); } #endif flash_area_close(fap); vt = (struct arm_vector_table *)dst; vt = (struct arm_vector_table *)(flash_base + rsp->br_image_off + rsp->br_hdr->ih_hdr_size); #endif if (IS_ENABLED(CONFIG_SYSTEM_TIMER_HAS_DISABLE_SUPPORT)) { Loading Loading
boot/zephyr/flash_map_extended.c +0 −13 Changes for boot/zephyr/flash_map_extended.c: 0 added lines, 13 removed lines. Original line number Diff line number Diff line Loading @@ -155,21 +155,8 @@ int flash_area_sector_from_off(off_t off, struct flash_sector *sector) uint8_t flash_area_get_device_id(const struct flash_area *fa) { uint8_t device_id; int rc; rc = BOOT_HOOK_FLASH_AREA_CALL(flash_area_get_device_id_hook, BOOT_HOOK_REGULAR, fa, &device_id); if (rc != BOOT_HOOK_REGULAR) { return device_id; } #if defined(CONFIG_ARM) return fa->fa_id; #else (void)fa; return FLASH_DEVICE_ID; #endif } #define ERASED_VAL 0xff Loading
boot/zephyr/main.c +5 −15 Changes for boot/zephyr/main.c: 5 added lines, 15 removed lines. Original line number Diff line number Diff line Loading @@ -158,26 +158,16 @@ static void do_boot(struct boot_rsp *rsp) /* Get ram address for image */ vt = (struct arm_vector_table *)(rsp->br_hdr->ih_load_addr + rsp->br_hdr->ih_hdr_size); #else uintptr_t flash_base; int rc; const struct flash_area *fap; static uint32_t dst[2]; /* Jump to flash image */ rc = flash_area_open(rsp->br_flash_dev_id, &fap); rc = flash_device_base(rsp->br_flash_dev_id, &flash_base); assert(rc == 0); rc = flash_area_read(fap, rsp->br_hdr->ih_hdr_size, dst, sizeof(dst)); assert(rc == 0); #ifndef CONFIG_ASSERT /* Enter a lock up as asserts are disabled */ if (rc != 0) { while (1); } #endif flash_area_close(fap); vt = (struct arm_vector_table *)dst; vt = (struct arm_vector_table *)(flash_base + rsp->br_image_off + rsp->br_hdr->ih_hdr_size); #endif if (IS_ENABLED(CONFIG_SYSTEM_TIMER_HAS_DISABLE_SUPPORT)) { Loading