Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3234f446 authored by Steven J. Hill's avatar Steven J. Hill
Browse files

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: default avatarSteven J. Hill <sjhill@mips.com>
parent ec167f2d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -312,6 +312,7 @@ void __init gic_init(unsigned long gic_base_addr,

	numvpes = (gicconfig & GIC_SH_CONFIG_NUMVPES_MSK) >>
		  GIC_SH_CONFIG_NUMVPES_SHF;
	numvpes = numvpes + 1;

	gic_basic_init(numintrs, numvpes, intr_map, intr_map_size);