提交 93b5f6f1 编写于 作者: A Adam Lackorzynski 提交者: Peter Maydell

arm_gic: Use GIC_NR_SGIS constant

Use constant rather than a plain number.
Acked-by: NChristoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: NAdam Lackorzynski <adam@os.inf.tu-dresden.de>
Message-id: 1408372255-12358-5-git-send-email-adam@os.inf.tu-dresden.de
Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
上级 de7a900f
......@@ -128,7 +128,7 @@ static void arm_gic_common_reset(DeviceState *dev)
s->running_priority[i] = 0x100;
s->cpu_enabled[i] = false;
}
for (i = 0; i < 16; i++) {
for (i = 0; i < GIC_NR_SGIS; i++) {
GIC_SET_ENABLED(i, ALL_CPU_MASK);
GIC_SET_EDGE_TRIGGER(i);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册