spm_shim_private.h 869 Bytes
Newer Older
1
/*
2
 * Copyright (c) 2017-2019, ARM Limited and Contributors. All rights reserved.
3
4
5
6
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

7
8
#ifndef SPM_SHIM_PRIVATE_H
#define SPM_SHIM_PRIVATE_H
9

10
#include <stdint.h>
11
12

#include <lib/utils_def.h>
13
14

/* Assembly source */
15
IMPORT_SYM(uintptr_t, spm_shim_exceptions_ptr,		SPM_SHIM_EXCEPTIONS_PTR);
16
17

/* Linker symbols */
18
19
IMPORT_SYM(uintptr_t, __SPM_SHIM_EXCEPTIONS_START__,	SPM_SHIM_EXCEPTIONS_START);
IMPORT_SYM(uintptr_t, __SPM_SHIM_EXCEPTIONS_END__,	SPM_SHIM_EXCEPTIONS_END);
20
21
22
23
24
25

/* Definitions */

#define SPM_SHIM_EXCEPTIONS_SIZE	\
	(SPM_SHIM_EXCEPTIONS_END - SPM_SHIM_EXCEPTIONS_START)

26
27
28
29
30
31
32
33
/*
 * Use the smallest virtual address space size allowed in ARMv8.0 for
 * compatibility.
 */
#define SPM_SHIM_XLAT_VIRT_ADDR_SPACE_SIZE	(1ULL << 25)
#define SPM_SHIM_MMAP_REGIONS	1
#define SPM_SHIM_XLAT_TABLES	1

34
#endif /* SPM_SHIM_PRIVATE_H */