aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/module-rela.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/kernel/module-rela.c')
-rw-r--r--arch/mips/kernel/module-rela.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/mips/kernel/module-rela.c b/arch/mips/kernel/module-rela.c
index 61d60028b888..2b70723071c3 100644
--- a/arch/mips/kernel/module-rela.c
+++ b/arch/mips/kernel/module-rela.c
@@ -55,7 +55,7 @@ static int apply_r_mips_26_rela(struct module *me, u32 *location, Elf_Addr v)
55static int apply_r_mips_hi16_rela(struct module *me, u32 *location, Elf_Addr v) 55static int apply_r_mips_hi16_rela(struct module *me, u32 *location, Elf_Addr v)
56{ 56{
57 *location = (*location & 0xffff0000) | 57 *location = (*location & 0xffff0000) |
58 ((((long long) v + 0x8000LL) >> 16) & 0xffff); 58 ((((long long) v + 0x8000LL) >> 16) & 0xffff);
59 59
60 return 0; 60 return 0;
61} 61}
@@ -78,7 +78,7 @@ static int apply_r_mips_higher_rela(struct module *me, u32 *location,
78 Elf_Addr v) 78 Elf_Addr v)
79{ 79{
80 *location = (*location & 0xffff0000) | 80 *location = (*location & 0xffff0000) |
81 ((((long long) v + 0x80008000LL) >> 32) & 0xffff); 81 ((((long long) v + 0x80008000LL) >> 32) & 0xffff);
82 82
83 return 0; 83 return 0;
84} 84}
@@ -87,7 +87,7 @@ static int apply_r_mips_highest_rela(struct module *me, u32 *location,
87 Elf_Addr v) 87 Elf_Addr v)
88{ 88{
89 *location = (*location & 0xffff0000) | 89 *location = (*location & 0xffff0000) |
90 ((((long long) v + 0x800080008000LL) >> 48) & 0xffff); 90 ((((long long) v + 0x800080008000LL) >> 48) & 0xffff);
91 91
92 return 0; 92 return 0;
93} 93}