Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 292503
b: refs/heads/master
c: 1b70117
h: refs/heads/master
i:
  292501: e30dd56
  292499: ea4e12e
  292495: 9566ebe
v: v3
  • Loading branch information
Benjamin Herrenschmidt committed Mar 8, 2012
1 parent a3f62ea commit 46aa238
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 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: 1421ae0b29e0003395613bf67610d15fb7047e09
refs/heads/master: 1b70117924a4f254840ed70fbe3020d4519a1a9a
25 changes: 22 additions & 3 deletions trunk/arch/powerpc/include/asm/exception-64s.h
Original file line number Diff line number Diff line change
Expand Up @@ -272,15 +272,34 @@ label##_hv: \
_MASKABLE_EXCEPTION_PSERIES(vec, label, \
EXC_HV, SOFTEN_TEST_HV)

/*
* Our exception common code can be passed various "additions"
* to specify the behaviour of interrupts, whether to kick the
* runlatch, etc...
*/

/* Exception addition: Hard disable interrupts */
#ifdef CONFIG_TRACE_IRQFLAGS
#define DISABLE_INTS \
lbz r10,PACASOFTIRQEN(r13); \
li r11,0; \
stb r11,PACASOFTIRQEN(r13); \
cmpwi cr0,r10,0; \
stb r11,PACAHARDIRQEN(r13); \
TRACE_DISABLE_INTS
beq 44f; \
stb r11,PACASOFTIRQEN(r13); \
TRACE_DISABLE_INTS; \
44:
#else
#define DISABLE_INTS \
li r11,0; \
stb r11,PACASOFTIRQEN(r13); \
stb r11,PACAHARDIRQEN(r13)
#endif /* CONFIG_TRACE_IRQFLAGS */

/* Exception addition: Keep interrupt state */
#define ENABLE_INTS \
ld r12,_MSR(r1); \
mfmsr r11; \
ld r12,_MSR(r1); \
rlwimi r11,r12,0,MSR_EE; \
mtmsrd r11,1

Expand Down

0 comments on commit 46aa238

Please sign in to comment.