mirror of https://github.com/wolfSSL/wolfBoot.git
Mark wolfBoot_invalidate_hdr_cache RAMFUNCTION
Called from the RAM-resident update path (update_ram.c) under EXT_FLASH; place the body in RAM so it runs after flash remap instead of faulting. Verification: built unit-custom-trailer-nopart (EXT_FLASH) - compiles clean; imx95_m7 (EXT_FLASH, CI repro) - compiles clean.pull/892/head
parent
c3f9717fb5
commit
7feb9cbf67
|
|
@ -1752,7 +1752,7 @@ uint16_t wolfBoot_get_header(struct wolfBoot_image *img, uint16_t type, uint8_t
|
|||
|
||||
#ifdef EXT_FLASH
|
||||
/* Drop the cached external image header so the next open reloads it. */
|
||||
void wolfBoot_invalidate_hdr_cache(void);
|
||||
void RAMFUNCTION wolfBoot_invalidate_hdr_cache(void);
|
||||
#endif
|
||||
|
||||
/* Find the key slot ID based on the SHA hash of the key. */
|
||||
|
|
|
|||
|
|
@ -1097,7 +1097,7 @@ static uint8_t *fetch_hdr_cpy(struct wolfBoot_image *img)
|
|||
* it to every later get_header() call. Call this before opening a
|
||||
* different image so TLV lookups do not read the stale header.
|
||||
*/
|
||||
void wolfBoot_invalidate_hdr_cache(void)
|
||||
void RAMFUNCTION wolfBoot_invalidate_hdr_cache(void)
|
||||
{
|
||||
hdr_cpy_done = 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue