diff options
author | Joel Hutton <Joel.Hutton@Arm.com> | 2018-03-21 11:40:57 +0000 |
---|---|---|
committer | Joel Hutton <Joel.Hutton@Arm.com> | 2018-03-27 13:20:27 +0100 |
commit | 9f85f9e3796f1c351bbc4c8436dc66d83c140b71 (patch) | |
tree | d9cbd296c7fa0205323ebb5da1ab466b3227f5d5 /common | |
parent | f13ef37a38cec17f72f08dc63bbbe546a54d78a7 (diff) |
Clean usage of void pointers to access symbols
Void pointers have been used to access linker symbols, by declaring an
extern pointer, then taking the address of it. This limits symbols
values to aligned pointer values. To remove this restriction an
IMPORT_SYM macro has been introduced, which declares it as a char
pointer and casts it to the required type.
Change-Id: I89877fc3b13ed311817bb8ba79d4872b89bfd3b0
Signed-off-by: Joel Hutton <Joel.Hutton@Arm.com>
Diffstat (limited to 'common')
-rw-r--r-- | common/runtime_svc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/common/runtime_svc.c b/common/runtime_svc.c index 0ea4cd09..de80f30c 100644 --- a/common/runtime_svc.c +++ b/common/runtime_svc.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013-2017, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2013-2018, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -19,8 +19,6 @@ * 'rt_svc_descs_indices' array. This gives the index of the descriptor in the * 'rt_svc_descs' array which contains the SMC handler. ******************************************************************************/ -#define RT_SVC_DESCS_START ((uintptr_t) (&__RT_SVC_DESCS_START__)) -#define RT_SVC_DESCS_END ((uintptr_t) (&__RT_SVC_DESCS_END__)) uint8_t rt_svc_descs_indices[MAX_RT_SVCS]; static rt_svc_desc_t *rt_svc_descs; |