Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 123337
b: refs/heads/master
c: 5565736
h: refs/heads/master
i:
  123335: fc3b22c
v: v3
  • Loading branch information
David S. Miller committed Dec 4, 2008
1 parent 060fbfc commit 03d90f0
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b4f4372f96e0573d752d9e45beda02fabf716cc8
refs/heads/master: 5565736e44fff06dc5f5c6559e04ac58d2d560ab
2 changes: 1 addition & 1 deletion trunk/arch/sparc/include/asm/ttable.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
mov level, %o0; \
call routine; \
add %sp, PTREGS_OFF, %o1; \
ba,a,pt %xcc, rtrap_irq;
ba,a,pt %xcc, rtrap_nmi;

#define TRAP_IVEC TRAP_NOSAVE(do_ivec)

Expand Down
14 changes: 13 additions & 1 deletion trunk/arch/sparc64/kernel/rtrap.S
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,18 @@ __handle_signal:
ba,pt %xcc, __handle_signal_continue
andn %l1, %l4, %l1

/* When returning from a NMI (%pil==15) interrupt we want to
* avoid running softirqs, doing IRQ tracing, preempting, etc.
*/
.globl rtrap_nmi
rtrap_nmi: ldx [%sp + PTREGS_OFF + PT_V9_TSTATE], %l1
sethi %hi(0xf << 20), %l4
and %l1, %l4, %l4
andn %l1, %l4, %l1
srl %l4, 20, %l4
ba,pt %xcc, rtrap_no_irq_enable
wrpr %l4, %pil

.align 64
.globl rtrap_irq, rtrap, irqsz_patchme, rtrap_xcall
rtrap_irq:
Expand Down Expand Up @@ -161,8 +173,8 @@ rtrap_xcall:
call trace_hardirqs_on
nop
wrpr %l4, %pil
rtrap_no_irq_enable:
#endif
rtrap_no_irq_enable:
andcc %l1, TSTATE_PRIV, %l3
bne,pn %icc, to_kernel
nop
Expand Down

0 comments on commit 03d90f0

Please sign in to comment.