plat_common.c 778 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright (c) 2016-2024, ARM Limited and Contributors. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #include <lib/xlat_tables/xlat_mmu_helpers.h>
  7. #include <plat/common/platform.h>
  8. /* Pointer and function to register platform function to load alernate images */
  9. const struct plat_try_images_ops *plat_try_img_ops;
  10. void plat_setup_try_img_ops(const struct plat_try_images_ops *plat_try_ops)
  11. {
  12. plat_try_img_ops = plat_try_ops;
  13. }
  14. /*
  15. * The following platform setup functions are weakly defined. They
  16. * provide typical implementations that may be re-used by multiple
  17. * platforms but may also be overridden by a platform if required.
  18. */
  19. #pragma weak bl32_plat_enable_mmu
  20. void bl32_plat_enable_mmu(uint32_t flags)
  21. {
  22. enable_mmu_svc_mon(flags);
  23. }