imx8: parser: fix 'end address' parameter of rm_find_memreg
parameter 'end address' must be inclusive of address range. Modified from Seb's downstream patch. Reviewed-by: Fabio Estevam <festevam@gmail.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
parent
6fcd0b2388
commit
b7328de6cd
@ -29,7 +29,7 @@ static int authenticate_image(struct boot_img_t *img, int image_index)
|
||||
/* Find the memreg and set permission for seco pt */
|
||||
err = sc_rm_find_memreg(-1, &mr,
|
||||
img->dst & ~(CONFIG_SYS_CACHELINE_SIZE - 1),
|
||||
ALIGN(img->dst + img->size, CONFIG_SYS_CACHELINE_SIZE));
|
||||
ALIGN(img->dst + img->size, CONFIG_SYS_CACHELINE_SIZE) - 1);
|
||||
|
||||
if (err) {
|
||||
printf("can't find memreg for image: %d, err %d\n",
|
||||
|
Loading…
Reference in New Issue
Block a user