MIPS: Make VPE count to be one-based.
When dealing with multiple VPEs, the count needs to be one-based for correct initialization of the GIC. Signed-off-by: Steven J. Hill <sjhill@mips.com>
This commit is contained in:
parent
ec167f2d9b
commit
3234f44669
@ -312,6 +312,7 @@ void __init gic_init(unsigned long gic_base_addr,
|
|||||||
|
|
||||||
numvpes = (gicconfig & GIC_SH_CONFIG_NUMVPES_MSK) >>
|
numvpes = (gicconfig & GIC_SH_CONFIG_NUMVPES_MSK) >>
|
||||||
GIC_SH_CONFIG_NUMVPES_SHF;
|
GIC_SH_CONFIG_NUMVPES_SHF;
|
||||||
|
numvpes = numvpes + 1;
|
||||||
|
|
||||||
gic_basic_init(numintrs, numvpes, intr_map, intr_map_size);
|
gic_basic_init(numintrs, numvpes, intr_map, intr_map_size);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user