Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 4101
b: refs/heads/master
c: 088dd1f
h: refs/heads/master
i:
  4099: 857d315
v: v3
  • Loading branch information
David S. Miller committed Jul 4, 2005
1 parent 6e2f2ec commit a95b6e8
Show file tree
Hide file tree
Showing 7 changed files with 248 additions and 468 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: 06326e40b7c66477d4a460bfc23c951f7b39f191
refs/heads/master: 088dd1f81b3577c17c4c4381696bf2105ea0e43a
21 changes: 3 additions & 18 deletions trunk/arch/sparc64/kernel/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -553,23 +553,21 @@ do_ivec:
sllx %g3, 5, %g3
or %g2, %lo(ivector_table), %g2
add %g2, %g3, %g3
ldx [%g3 + 0x08], %g2 /* irq_info */
ldub [%g3 + 0x04], %g4 /* pil */
brz,pn %g2, do_ivec_spurious
mov 1, %g2

mov 1, %g2
sllx %g2, %g4, %g2
sllx %g4, 2, %g4

lduw [%g6 + %g4], %g5 /* g5 = irq_work(cpu, pil) */
stw %g5, [%g3 + 0x00] /* bucket->irq_chain = g5 */
stw %g3, [%g6 + %g4] /* irq_work(cpu, pil) = bucket */
wr %g2, 0x0, %set_softint
retry
do_ivec_xcall:
mov 0x50, %g1

ldxa [%g1 + %g0] ASI_INTR_R, %g1
srl %g3, 0, %g3

mov 0x60, %g7
ldxa [%g7 + %g0] ASI_INTR_R, %g7
stxa %g0, [%g0] ASI_INTR_RECEIVE
Expand All @@ -581,19 +579,6 @@ do_ivec_xcall:
1: jmpl %g3, %g0
nop

do_ivec_spurious:
stw %g3, [%g6 + 0x00] /* irq_work(cpu, 0) = bucket */
rdpr %pstate, %g5

wrpr %g5, PSTATE_IG | PSTATE_AG, %pstate
sethi %hi(109f), %g7
ba,pt %xcc, etrap
109: or %g7, %lo(109b), %g7
call catch_disabled_ivec
add %sp, PTREGS_OFF, %o0
ba,pt %xcc, rtrap
clr %l6

.globl save_alternate_globals
save_alternate_globals: /* %o0 = save_area */
rdpr %pstate, %o5
Expand Down
Loading

0 comments on commit a95b6e8

Please sign in to comment.