tsp_request.S 596 Bytes
Newer Older
1
/*
2
 * Copyright (c) 2013-2020, ARM Limited and Contributors. All rights reserved.
3
 *
dp-arm's avatar
dp-arm committed
4
 * SPDX-License-Identifier: BSD-3-Clause
5
6
 */

7
#include <asm_macros.S>
8
#include <bl32/tsp/tsp.h>
9
10
11
12
13
14
15
16

	.globl tsp_get_magic

/*
 * This function raises an SMC to retrieve arguments from secure
 * monitor/dispatcher, saves the returned arguments the array received in x0,
 * and then returns to the caller
 */
17
func tsp_get_magic
18
19
20
21
22
23
	/* Load arguments */
	ldr	w0, _tsp_fid_get_magic

	/* Raise SMC */
	smc	#0

24
	/* Return arguments in x1:x0 */
25
	ret
26
endfunc tsp_get_magic
27
28
29
30

	.align 2
_tsp_fid_get_magic:
	.word	TSP_GET_ARGS