plat_image_load.c 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #include <common/bl_common.h>
  7. #include <common/desc_image_load.h>
  8. #include <plat/common/platform.h>
  9. extern void bl2_plat_flush_bl31_params(void);
  10. /*******************************************************************************
  11. * This function flushes the data structures so that they are visible
  12. * in memory for the next BL image.
  13. ******************************************************************************/
  14. void plat_flush_next_bl_params(void)
  15. {
  16. #if IMAGE_BL2
  17. bl2_plat_flush_bl31_params();
  18. #endif
  19. }
  20. /*******************************************************************************
  21. * This function returns the list of loadable images.
  22. ******************************************************************************/
  23. bl_load_info_t *plat_get_bl_image_load_info(void)
  24. {
  25. return get_bl_load_info_from_mem_params_desc();
  26. }
  27. /*******************************************************************************
  28. * This function returns the list of executable images.
  29. ******************************************************************************/
  30. bl_params_t *plat_get_next_bl_params(void)
  31. {
  32. return get_next_bl_params_from_mem_params_desc();
  33. }