summaryrefslogtreecommitdiff
path: root/src/arch/i386/smp/ioapic.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/i386/smp/ioapic.c')
-rw-r--r--src/arch/i386/smp/ioapic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/i386/smp/ioapic.c b/src/arch/i386/smp/ioapic.c
index 87d9a46560..4e72f46f03 100644
--- a/src/arch/i386/smp/ioapic.c
+++ b/src/arch/i386/smp/ioapic.c
@@ -67,7 +67,7 @@ void setup_ioapic(void)
l[0] = 0x03;
l[4] = 1;
#endif /* i786 */
- for (i = 0; i < sizeof(ioapicregvalues) / sizeof(ioapicregvalues[0]);
+ for (i = 0; i < ARRAY_SIZE(ioapicregvalues);
i++, a++) {
l[0] = (a->reg * 2) + 0x10;
l[4] = a->value_low;