Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add flush_dcache and mmap_remove #1993

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions services/std_svc/spm/el3_spmc/spmc_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1654,6 +1654,13 @@ static int find_and_prepare_sp_context(void)
/* Initialize the SP context with the required ep info. */
spmc_sp_common_ep_commit(sp, next_image_ep_info);

ret = mmap_remove_dynamic_region(manifest_base_align, PAGE_SIZE * 2);
if (ret != 0) {
ERROR("Error while unmapping manifest_base, ret is (%d).\n",
ret);
return ret;
}

return 0;
}

Expand Down
2 changes: 2 additions & 0 deletions services/std_svc/spm/el3_spmc/spmc_setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ static void spmc_create_boot_info(entry_point_info_t *ep_info,
INFO("SP manifest @ 0x%lx, size: %u bytes.\n",
boot_descriptor->content,
boot_descriptor->size_boot_info);

flush_dcache_range((uintptr_t)ffa_boot_info_mem, PAGE_SIZE);
}

/*
Expand Down