diff options
author | Dimitris Papastamos <dimitris.papastamos@arm.com> | 2018-03-29 09:59:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-29 09:59:52 +0100 |
commit | e74af2afd0886a1b425757ff348396bffd0a580e (patch) | |
tree | 34de46f0991d30b29e21fbcb0df1bdf38ce14f12 /drivers | |
parent | 0b7477234a5b9c46eedbdeb69ccec6ccf3872465 (diff) | |
parent | 9f85f9e3796f1c351bbc4c8436dc66d83c140b71 (diff) | |
download | platform_external_arm-trusted-firmware-e74af2afd0886a1b425757ff348396bffd0a580e.tar.gz platform_external_arm-trusted-firmware-e74af2afd0886a1b425757ff348396bffd0a580e.tar.bz2 platform_external_arm-trusted-firmware-e74af2afd0886a1b425757ff348396bffd0a580e.zip |
Merge pull request #1335 from JoelHutton/jh/cleanup_void_pointers
Clean usage of void pointers to access symbols
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/auth/img_parser_mod.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/auth/img_parser_mod.c b/drivers/auth/img_parser_mod.c index 6a0107115..63160141d 100644 --- a/drivers/auth/img_parser_mod.c +++ b/drivers/auth/img_parser_mod.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -12,11 +12,10 @@ #include <limits.h> #include <stdint.h> #include <string.h> +#include <utils_def.h> -extern uintptr_t __PARSER_LIB_DESCS_START__; -extern uintptr_t __PARSER_LIB_DESCS_END__; -#define PARSER_LIB_DESCS_START ((uintptr_t) (&__PARSER_LIB_DESCS_START__)) -#define PARSER_LIB_DESCS_END ((uintptr_t) (&__PARSER_LIB_DESCS_END__)) +IMPORT_SYM(uintptr_t, __PARSER_LIB_DESCS_START__, PARSER_LIB_DESCS_START); +IMPORT_SYM(uintptr_t, __PARSER_LIB_DESCS_END__, PARSER_LIB_DESCS_END); static unsigned int parser_lib_indices[IMG_MAX_TYPES]; static img_parser_lib_desc_t *parser_lib_descs; |