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