Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 176138
b: refs/heads/master
c: 33d9ff5
h: refs/heads/master
v: v3
  • Loading branch information
steve@digidescorp.com authored and Michal Simek committed Dec 14, 2009
1 parent 400e573 commit f4ac687
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 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: 833d0d8da41b80e5f7c3b34cb187b12c33ef66c8
refs/heads/master: 33d9ff5985ff015cbaaef85285d19fe580487cf3
10 changes: 9 additions & 1 deletion trunk/arch/microblaze/kernel/intc.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,16 @@ unsigned int nr_irq;

static void intc_enable_or_unmask(unsigned int irq)
{
unsigned long mask = 1 << irq;
pr_debug("enable_or_unmask: %d\n", irq);
out_be32(INTC_BASE + SIE, 1 << irq);
out_be32(INTC_BASE + SIE, mask);

/* ack level irqs because they can't be acked during
* ack function since the handle_level_irq function
* acks the irq before calling the interrupt handler
*/
if (irq_desc[irq].status & IRQ_LEVEL)
out_be32(INTC_BASE + IAR, mask);
}

static void intc_disable_or_mask(unsigned int irq)
Expand Down

0 comments on commit f4ac687

Please sign in to comment.