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 /include/services/secure_partition.h | |
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 'include/services/secure_partition.h')
-rw-r--r-- | include/services/secure_partition.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/include/services/secure_partition.h b/include/services/secure_partition.h index 93df2a137..f68f711be 100644 --- a/include/services/secure_partition.h +++ b/include/services/secure_partition.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -11,15 +11,11 @@ #include <types.h> #include <utils_def.h> -/* Linker symbols */ -extern uintptr_t __SP_IMAGE_XLAT_TABLES_START__; -extern uintptr_t __SP_IMAGE_XLAT_TABLES_END__; +/* Import linker symbols */ +IMPORT_SYM(uintptr_t, __SP_IMAGE_XLAT_TABLES_START__, SP_IMAGE_XLAT_TABLES_START); +IMPORT_SYM(uintptr_t, __SP_IMAGE_XLAT_TABLES_END__, SP_IMAGE_XLAT_TABLES_END); /* Definitions */ -#define SP_IMAGE_XLAT_TABLES_START \ - (uintptr_t)(&__SP_IMAGE_XLAT_TABLES_START__) -#define SP_IMAGE_XLAT_TABLES_END \ - (uintptr_t)(&__SP_IMAGE_XLAT_TABLES_END__) #define SP_IMAGE_XLAT_TABLES_SIZE \ (SP_IMAGE_XLAT_TABLES_END - SP_IMAGE_XLAT_TABLES_START) |