Skip to content

Commit 34074da

Browse files
committed
Merge tag 'for-5.19/parisc-4' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux
Pull parisc architecture fixes from Helge Deller: "Two important fixes for bugs in code which was added in 5.18: - Fix userspace signal failures on 32-bit kernel due to a bug in vDSO - Fix 32-bit load-word unalignment exception handler which returned wrong values" * tag 'for-5.19/parisc-4' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux: parisc: Fix vDSO signal breakage on 32-bit kernel parisc/unaligned: Fix emulate_ldw() breakage
2 parents bb7c512 + aa78fa9 commit 34074da

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

arch/parisc/kernel/asm-offsets.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,13 @@ int main(void)
224224
BLANK();
225225
DEFINE(ASM_SIGFRAME_SIZE, PARISC_RT_SIGFRAME_SIZE);
226226
DEFINE(SIGFRAME_CONTEXT_REGS, offsetof(struct rt_sigframe, uc.uc_mcontext) - PARISC_RT_SIGFRAME_SIZE);
227+
#ifdef CONFIG_64BIT
227228
DEFINE(ASM_SIGFRAME_SIZE32, PARISC_RT_SIGFRAME_SIZE32);
228229
DEFINE(SIGFRAME_CONTEXT_REGS32, offsetof(struct compat_rt_sigframe, uc.uc_mcontext) - PARISC_RT_SIGFRAME_SIZE32);
230+
#else
231+
DEFINE(ASM_SIGFRAME_SIZE32, PARISC_RT_SIGFRAME_SIZE);
232+
DEFINE(SIGFRAME_CONTEXT_REGS32, offsetof(struct rt_sigframe, uc.uc_mcontext) - PARISC_RT_SIGFRAME_SIZE);
233+
#endif
229234
BLANK();
230235
DEFINE(ICACHE_BASE, offsetof(struct pdc_cache_info, ic_base));
231236
DEFINE(ICACHE_STRIDE, offsetof(struct pdc_cache_info, ic_stride));

arch/parisc/kernel/unaligned.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ static int emulate_ldw(struct pt_regs *regs, int toreg, int flop)
146146
" depw %%r0,31,2,%4\n"
147147
"1: ldw 0(%%sr1,%4),%0\n"
148148
"2: ldw 4(%%sr1,%4),%3\n"
149-
" subi 32,%4,%2\n"
149+
" subi 32,%2,%2\n"
150150
" mtctl %2,11\n"
151151
" vshd %0,%3,%0\n"
152152
"3: \n"

0 commit comments

Comments
 (0)