qemu_spmd_manifest.c 741 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Copyright (c) 2021, ARM Limited and Contributors. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #include <assert.h>
  7. #include <services/spm_core_manifest.h>
  8. #include <plat/common/platform.h>
  9. #include <platform_def.h>
  10. int plat_spm_core_manifest_load(spmc_manifest_attribute_t *manifest,
  11. const void *pm_addr)
  12. {
  13. entry_point_info_t *ep_info = bl31_plat_get_next_image_ep_info(SECURE);
  14. assert(ep_info != NULL);
  15. assert(manifest != NULL);
  16. manifest->major_version = 1;
  17. manifest->minor_version = 0;
  18. manifest->exec_state = ep_info->args.arg2;
  19. manifest->load_address = BL32_BASE;
  20. manifest->entrypoint = BL32_BASE;
  21. manifest->binary_size = BL32_LIMIT - BL32_BASE;
  22. manifest->spmc_id = 0x8000;
  23. return 0;
  24. }