aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/module.h
diff options
context:
space:
mode:
authorAlex Sverdlin <alexander.sverdlin@nokia.com>2021-09-22 09:59:55 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-09-26 14:08:56 +0200
commitce90c6706d5a95ddda8d3cea01768bd0b4445851 (patch)
tree40aa7da097e8a7bf324ead766104269dd7581ecd /arch/arm/include/asm/module.h
parenteb46d7c8ae838b37ad4acee44fa3828af3062ce7 (diff)
downloadkernel_replicant_linux-ce90c6706d5a95ddda8d3cea01768bd0b4445851.tar.gz
kernel_replicant_linux-ce90c6706d5a95ddda8d3cea01768bd0b4445851.tar.bz2
kernel_replicant_linux-ce90c6706d5a95ddda8d3cea01768bd0b4445851.zip
ARM: 9077/1: PLT: Move struct plt_entries definition to header
commit 4e271701c17dee70c6e1351c4d7d42e70405c6a9 upstream upstream No functional change, later it will be re-used in several files. Signed-off-by: Alexander Sverdlin <alexander.sverdlin@nokia.com> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/arm/include/asm/module.h')
-rw-r--r--arch/arm/include/asm/module.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/include/asm/module.h b/arch/arm/include/asm/module.h
index 4b0df09cbe67..09b9ad55b83d 100644
--- a/arch/arm/include/asm/module.h
+++ b/arch/arm/include/asm/module.h
@@ -19,6 +19,15 @@ enum {
};
#endif
+#define PLT_ENT_STRIDE L1_CACHE_BYTES
+#define PLT_ENT_COUNT (PLT_ENT_STRIDE / sizeof(u32))
+#define PLT_ENT_SIZE (sizeof(struct plt_entries) / PLT_ENT_COUNT)
+
+struct plt_entries {
+ u32 ldr[PLT_ENT_COUNT];
+ u32 lit[PLT_ENT_COUNT];
+};
+
struct mod_plt_sec {
struct elf32_shdr *plt;
int plt_count;