Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 276157
b: refs/heads/master
c: fe41db7
h: refs/heads/master
i:
  276155: e6b8b05
v: v3
  • Loading branch information
Will Deacon authored and Russell King committed Nov 26, 2011
1 parent 77ce826 commit 09c7240
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 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: abdd7b91dab2f8b2e32e90e4b7e809ffb462a662
refs/heads/master: fe41db7b3aca512e19b8ef4fbd5ad55545005d25
13 changes: 8 additions & 5 deletions trunk/arch/arm/common/gic.c
Original file line number Diff line number Diff line change
Expand Up @@ -582,13 +582,16 @@ void __init gic_init(unsigned int gic_nr, int irq_start,
* For primary GICs, skip over SGIs.
* For secondary GICs, skip over PPIs, too.
*/
domain->hwirq_base = 32;
if (gic_nr == 0) {
gic_cpu_base_addr = cpu_base;
domain->hwirq_base = 16;
if (irq_start > 0)
irq_start = (irq_start & ~31) + 16;
} else
domain->hwirq_base = 32;

if ((irq_start & 31) > 0) {
domain->hwirq_base = 16;
if (irq_start != -1)
irq_start = (irq_start & ~31) + 16;
}
}

/*
* Find out how many interrupts are supported.
Expand Down

0 comments on commit 09c7240

Please sign in to comment.