tangled
alpha
login
or
join now
tjh.dev
/
kernel
1
fork
atom
Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1
fork
atom
overview
issues
pulls
pipelines
Merge master.kernel.org:/home/rmk/linux-2.6-arm
Linus Torvalds
20 years ago
c7868048
9d149c27
+9
-4
3 changed files
expand all
collapse all
unified
split
arch
arm
kernel
module.c
mach-pxa
pm.c
include
asm-arm
elf.h
+2
arch/arm/kernel/module.c
reviewed
···
101
101
break;
102
102
103
103
case R_ARM_PC24:
104
104
+
case R_ARM_CALL:
105
105
+
case R_ARM_JUMP24:
104
106
offset = (*(u32 *)loc & 0x00ffffff) << 2;
105
107
if (offset & 0x02000000)
106
108
offset -= 0x04000000;
+5
-4
arch/arm/mach-pxa/pm.c
reviewed
···
155
155
PSPR = 0;
156
156
157
157
/* restore registers */
158
158
+
RESTORE_GPLEVEL(0); RESTORE_GPLEVEL(1); RESTORE_GPLEVEL(2);
159
159
+
RESTORE(GPDR0); RESTORE(GPDR1); RESTORE(GPDR2);
158
160
RESTORE(GAFR0_L); RESTORE(GAFR0_U);
159
161
RESTORE(GAFR1_L); RESTORE(GAFR1_U);
160
162
RESTORE(GAFR2_L); RESTORE(GAFR2_U);
161
161
-
RESTORE_GPLEVEL(0); RESTORE_GPLEVEL(1); RESTORE_GPLEVEL(2);
162
162
-
RESTORE(GPDR0); RESTORE(GPDR1); RESTORE(GPDR2);
163
163
RESTORE(GRER0); RESTORE(GRER1); RESTORE(GRER2);
164
164
RESTORE(GFER0); RESTORE(GFER1); RESTORE(GFER2);
165
165
RESTORE(PGSR0); RESTORE(PGSR1); RESTORE(PGSR2);
166
166
167
167
#ifdef CONFIG_PXA27x
168
168
RESTORE(MDREFR);
169
169
-
RESTORE(GAFR3_L); RESTORE(GAFR3_U); RESTORE_GPLEVEL(3);
170
170
-
RESTORE(GPDR3); RESTORE(GRER3); RESTORE(GFER3); RESTORE(PGSR3);
169
169
+
RESTORE_GPLEVEL(3); RESTORE(GPDR3);
170
170
+
RESTORE(GAFR3_L); RESTORE(GAFR3_U);
171
171
+
RESTORE(GRER3); RESTORE(GFER3); RESTORE(PGSR3);
171
172
RESTORE(PWER); RESTORE(PCFR); RESTORE(PRER);
172
173
RESTORE(PFER); RESTORE(PKWR);
173
174
#endif
+2
include/asm-arm/elf.h
reviewed
···
22
22
#define R_ARM_NONE 0
23
23
#define R_ARM_PC24 1
24
24
#define R_ARM_ABS32 2
25
25
+
#define R_ARM_CALL 28
26
26
+
#define R_ARM_JUMP24 29
25
27
26
28
#define ELF_NGREG (sizeof (struct pt_regs) / sizeof(elf_greg_t))
27
29
typedef elf_greg_t elf_gregset_t[ELF_NGREG];