diff options
Diffstat (limited to 'arch/arm/common/gic.c')
-rw-r--r-- | arch/arm/common/gic.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/arch/arm/common/gic.c b/arch/arm/common/gic.c index b2dc2dd7f1df..a3bc86fa3156 100644 --- a/arch/arm/common/gic.c +++ b/arch/arm/common/gic.c | |||
@@ -697,13 +697,12 @@ void __init gic_init_bases(unsigned int gic_nr, int irq_start, | |||
697 | * For primary GICs, skip over SGIs. | 697 | * For primary GICs, skip over SGIs. |
698 | * For secondary GICs, skip over PPIs, too. | 698 | * For secondary GICs, skip over PPIs, too. |
699 | */ | 699 | */ |
700 | domain->hwirq_base = 32; | 700 | if (gic_nr == 0 && (irq_start & 31) > 0) { |
701 | if (gic_nr == 0) { | 701 | domain->hwirq_base = 16; |
702 | if ((irq_start & 31) > 0) { | 702 | if (irq_start != -1) |
703 | domain->hwirq_base = 16; | 703 | irq_start = (irq_start & ~31) + 16; |
704 | if (irq_start != -1) | 704 | } else { |
705 | irq_start = (irq_start & ~31) + 16; | 705 | domain->hwirq_base = 32; |
706 | } | ||
707 | } | 706 | } |
708 | 707 | ||
709 | /* | 708 | /* |