tsp_request.S 596 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright (c) 2013-2020, ARM Limited and Contributors. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #include <asm_macros.S>
  7. #include <bl32/tsp/tsp.h>
  8. .globl tsp_get_magic
  9. /*
  10. * This function raises an SMC to retrieve arguments from secure
  11. * monitor/dispatcher, saves the returned arguments the array received in x0,
  12. * and then returns to the caller
  13. */
  14. func tsp_get_magic
  15. /* Load arguments */
  16. ldr w0, _tsp_fid_get_magic
  17. /* Raise SMC */
  18. smc #0
  19. /* Return arguments in x1:x0 */
  20. ret
  21. endfunc tsp_get_magic
  22. .align 2
  23. _tsp_fid_get_magic:
  24. .word TSP_GET_ARGS