Antonio Nino Diaz | c41f206 | 2017-10-24 10:07:35 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2017, ARM Limited and Contributors. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | #ifndef __SPM_SHIM_PRIVATE__ |
| 8 | #define __SPM_SHIM_PRIVATE__ |
| 9 | |
| 10 | #include <types.h> |
| 11 | |
| 12 | /* Assembly source */ |
| 13 | extern uintptr_t spm_shim_exceptions_ptr; |
| 14 | |
| 15 | /* Linker symbols */ |
| 16 | extern uintptr_t __SPM_SHIM_EXCEPTIONS_START__; |
| 17 | extern uintptr_t __SPM_SHIM_EXCEPTIONS_END__; |
| 18 | |
| 19 | /* Definitions */ |
| 20 | #define SPM_SHIM_EXCEPTIONS_PTR (uintptr_t)(&spm_shim_exceptions_ptr) |
| 21 | |
| 22 | #define SPM_SHIM_EXCEPTIONS_START \ |
| 23 | (uintptr_t)(&__SPM_SHIM_EXCEPTIONS_START__) |
| 24 | #define SPM_SHIM_EXCEPTIONS_END \ |
| 25 | (uintptr_t)(&__SPM_SHIM_EXCEPTIONS_END__) |
| 26 | #define SPM_SHIM_EXCEPTIONS_SIZE \ |
| 27 | (SPM_SHIM_EXCEPTIONS_END - SPM_SHIM_EXCEPTIONS_START) |
| 28 | |
| 29 | #endif /* __SPM_SHIM_PRIVATE__ */ |