zynqmp_sdei.c 886 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * Copyright (c) 2017-2020, Arm Limited and Contributors. All rights reserved.
  3. * Copyright (c) Siemens AG, 2020-2021
  4. *
  5. * SPDX-License-Identifier: BSD-3-Clause
  6. */
  7. /* SDEI configuration for ARM platforms */
  8. #include <bl31/ehf.h>
  9. #include <common/debug.h>
  10. #include <plat/common/platform.h>
  11. #include <services/sdei.h>
  12. #include <platform_def.h>
  13. int arm_validate_ns_entrypoint(uintptr_t entrypoint)
  14. {
  15. uint64_t base = BL31_BASE;
  16. uint64_t limit = BL31_LIMIT;
  17. return (entrypoint < base || entrypoint > limit) ? 0 : -1;
  18. }
  19. /* Private event mappings */
  20. static sdei_ev_map_t zynqmp_sdei_private[] = {
  21. SDEI_DEFINE_EVENT_0(ZYNQMP_SDEI_SGI_PRIVATE),
  22. };
  23. /* Shared event mappings */
  24. static sdei_ev_map_t zynqmp_sdei_shared[] = {
  25. };
  26. void plat_sdei_setup(void)
  27. {
  28. INFO("SDEI platform setup\n");
  29. }
  30. /* Export ARM SDEI events */
  31. REGISTER_SDEI_MAP(zynqmp_sdei_private, zynqmp_sdei_shared);