Commit 4f65ee38 authored by Andrew F. Davis's avatar Andrew F. Davis Committed by Tom Rini

arm: mach-omap2: Flush cache after FIT post-processing image

After we authenticate/decrypt an image we need to flush the caches
as they may still contain bits of the encrypted image. This will
cause failures if we attempt to jump to this image.

Reported-by: Yogesh Siraswar<>
Signed-off-by: default avatarAndrew F. Davis <>
Reviewed-by: default avatarTom Rini <>
parent 7131d2d0
......@@ -120,6 +120,12 @@ int secure_boot_verify_image(void **image, size_t *size)
result = secure_rom_call(
4, cert_addr, cert_size, sig_addr, 0xFFFFFFFF);
/* Perform cache writeback on output buffer */
(u32)*image + roundup(*size, ARCH_DMA_MINALIGN));
if (result != 0) {
printf("Authentication failed!\n");
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment