Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc/powerpc Let ext_intr adjust ci_idepth.
details: https://anonhg.NetBSD.org/src/rev/e4eb94b79c01
branches: trunk
changeset: 766151:e4eb94b79c01
user: matt <matt%NetBSD.org@localhost>
date: Fri Jun 17 05:10:53 2011 +0000
description:
Let ext_intr adjust ci_idepth.
Remove some dead code.
Use the right register for SRR1
diffstat:
sys/arch/powerpc/powerpc/trap_subr.S | 16 ++--------------
1 files changed, 2 insertions(+), 14 deletions(-)
diffs (50 lines):
diff -r 39d54db05ddc -r e4eb94b79c01 sys/arch/powerpc/powerpc/trap_subr.S
--- a/sys/arch/powerpc/powerpc/trap_subr.S Fri Jun 17 05:07:17 2011 +0000
+++ b/sys/arch/powerpc/powerpc/trap_subr.S Fri Jun 17 05:10:53 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: trap_subr.S,v 1.69 2011/06/05 16:52:26 matt Exp $ */
+/* $NetBSD: trap_subr.S,v 1.70 2011/06/17 05:10:53 matt Exp $ */
/*
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -1084,8 +1084,6 @@
ldreg %r12,(savearea+CPUSAVE_SRR1)(%r2); /* get saved SRR1 */ \
ldptr %r13,CI_CURLWP(%r2); /* get curlwp */ \
ldint %r3,CI_IDEPTH(%r2); \
- addi %r4,%r3,1; \
- stint %r4,CI_IDEPTH(%r2); \
stint %r3,FRAME_IDEPTH(%r1); \
mfxer %r3; \
mfctr %r4; \
@@ -1117,22 +1115,12 @@
mtmsr %r3
isync
- GET_CPUINFO(%r5)
- ldint %r4,CI_IDEPTH(%r5)
- addi %r4,%r4,-1 /* adjust reentrancy count */
- stint %r4,CI_IDEPTH(%r5)
-
/* Returning to user mode? */
ldreg %r4,FRAME_SRR1(%r1)
mtcr %r4 /* saved SRR1 */
bf MSR_PR,intrleave /* branch if PSL_PR is false */
-#if 0
- ldptr %r3,CI_CURLWP(%r5)
- ldint %r3,L_MD_ASTPENDING(%r3) /* Test AST pending */
-#else
ldint %r3,L_MD_ASTPENDING(%r13) /* Test AST pending */
-#endif
andi. %r3,%r3,1
beq intrleave /* common frame exit */
@@ -1166,7 +1154,7 @@
li %r6,EXC_AST
stint %r6,FRAME_EXC(%r1)
- mr %r31, %r5 /* trapagain wants SRR1 in %r31 */
+ mr %r31, %r4 /* trapagain wants SRR1 in %r31 */
b trapagain
/*
Home |
Main Index |
Thread Index |
Old Index