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

Commit d3496c85 authored by Pekka Enberg's avatar Pekka Enberg Committed by Ingo Molnar
Browse files

x86: use identical loop constructs in 32-bit and 64-bit native_init_IRQ()



Impact: cleanup

Reviewed-by Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: default avatarPekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 22813c45
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -159,15 +159,16 @@ void __init native_init_IRQ(void)
	int i;

	init_ISA_irqs();

	/*
	 * Cover the whole vector space, no vector can escape
	 * us. (some of these will be overridden and become
	 * 'special' SMP interrupts)
	 */
	for (i = 0; i < (NR_VECTORS - FIRST_EXTERNAL_VECTOR); i++) {
		int vector = FIRST_EXTERNAL_VECTOR + i;
		if (vector != IA32_SYSCALL_VECTOR)
			set_intr_gate(vector, interrupt[i]);
	for (i = FIRST_EXTERNAL_VECTOR; i < NR_VECTORS; i++) {
		/* IA32_SYSCALL_VECTOR was reserved in trap_init. */
		if (i != IA32_SYSCALL_VECTOR)
			set_intr_gate(i, interrupt[i-FIRST_EXTERNAL_VECTOR]);
	}

	apic_intr_init();
+1 −1

File changed.

Contains only whitespace changes.