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