Skip to content

Commit 1a9dda1

Browse files
Ley Foon TanDinh Nguyen
authored andcommitted
FogBugz #172871: Use hardware interrupt instead of virtual interrupt
Fixed incorrect interrupt number when setting IENABLE register. We should use hardware interrupt number instead of virtual interrupt number. Signed-off-by: Ley Foon Tan <[email protected]>
1 parent 2ea1eec commit 1a9dda1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/nios2/kernel/irq.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ static void chip_unmask(struct irq_data *d)
4141
{
4242
unsigned ien;
4343
ien = RDCTL(CTL_IENABLE);
44-
ien |= (1 << d->irq);
44+
ien |= (1 << d->hwirq);
4545
WRCTL(CTL_IENABLE, ien);
4646
}
4747

4848
static void chip_mask(struct irq_data *d)
4949
{
5050
unsigned ien;
5151
ien = RDCTL(CTL_IENABLE);
52-
ien &= ~(1 << d->irq);
52+
ien &= ~(1 << d->hwirq);
5353
WRCTL(CTL_IENABLE, ien);
5454
}
5555

0 commit comments

Comments
 (0)