Skip to content

Commit a691c35

Browse files
committed
Fix regressions detected
1 parent 50725b3 commit a691c35

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/wolfboot/wolfboot.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ extern "C" {
205205
# define update_hash wc_Sha3Update
206206
# define final_hash wc_Sha3Final
207207
# define key_hash key_sha3_384
208-
typedef wc_sha3_384 wolfBoot_hash_t;
208+
typedef wc_Sha3 wolfBoot_hash_t;
209209
# define HDR_HASH HDR_SHA3_384
210210
#else
211211
# error "No valid hash algorithm defined!"

src/update_ram.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ void RAMFUNCTION wolfBoot_start(void)
271271

272272
#ifdef WOLFBOOT_ELF
273273
/* Load elf */
274-
if (elf_load_image((uint8_t*)load_address, (uintptr_t*)&load_address) != 0){
274+
if (elf_load_image_mmu((uint8_t*)load_address, (uintptr_t*)&load_address, NULL) != 0){
275275
wolfBoot_printf("Invalid elf, falling back to raw binary\n");
276276
}
277277
#endif

0 commit comments

Comments
 (0)