Skip to content

Commit

Permalink
Merge branch 'parisc-5.3-3' of git://git.kernel.org/pub/scm/linux/ker…
Browse files Browse the repository at this point in the history
…nel/git/deller/parisc-linux

Pull parisc fixes from Helge Deller:

 - Fix build issues when kprobes are enabled

 - Speed up ITLB/DTLB cache flushes when running on machines with
   combined TLBs

* 'parisc-5.3-3' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux:
  parisc: Flush ITLB in flush_tlb_all_local() only on split TLB machines
  parisc: add kprobe_fault_handler()
  • Loading branch information
torvalds committed Jul 23, 2019
2 parents 7b5cf70 + 69245c9 commit ad5e427
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions arch/parisc/include/asm/kprobes.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ struct kprobe_ctlblk {

int __kprobes parisc_kprobe_break_handler(struct pt_regs *regs);
int __kprobes parisc_kprobe_ss_handler(struct pt_regs *regs);
static inline int kprobe_fault_handler(struct pt_regs *regs, int trapnr)
{
return 0;
}

#endif /* CONFIG_KPROBES */
#endif /* _PARISC_KPROBES_H */
3 changes: 2 additions & 1 deletion arch/parisc/kernel/pacache.S
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ ENTRY_CFI(flush_tlb_all_local)

/* Flush Instruction Tlb */

LDREG ITLB_SID_BASE(%r1), %r20
88: LDREG ITLB_SID_BASE(%r1), %r20
LDREG ITLB_SID_STRIDE(%r1), %r21
LDREG ITLB_SID_COUNT(%r1), %r22
LDREG ITLB_OFF_BASE(%r1), %arg0
Expand Down Expand Up @@ -103,6 +103,7 @@ fitonemiddle: /* Loop if LOOP = 1 */
add %r21, %r20, %r20 /* increment space */

fitdone:
ALTERNATIVE(88b, fitdone, ALT_COND_NO_SPLIT_TLB, INSN_NOP)

/* Flush Data Tlb */

Expand Down

0 comments on commit ad5e427

Please sign in to comment.