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

Commit 9ff80942 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Ingo Molnar
Browse files

x86: Clean up idt_descr and idt_tableby using NR_VECTORS instead of hardcoded number



Signed-off-by: default avatarCyrill Gorcunov <gorcunov@openvz.org>
Cc: Yinghai Lu <yinghai@kernel.org>
LKML-Reference: <20090708180353.GH5301@lenovo>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent e3d0e692
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -982,7 +982,7 @@ static __init int setup_disablecpuid(char *arg)
__setup("clearcpuid=", setup_disablecpuid);
__setup("clearcpuid=", setup_disablecpuid);


#ifdef CONFIG_X86_64
#ifdef CONFIG_X86_64
struct desc_ptr idt_descr = { 256 * 16 - 1, (unsigned long) idt_table };
struct desc_ptr idt_descr = { NR_VECTORS * 16 - 1, (unsigned long) idt_table };


DEFINE_PER_CPU_FIRST(union irq_stack_union,
DEFINE_PER_CPU_FIRST(union irq_stack_union,
		     irq_stack_union) __aligned(PAGE_SIZE);
		     irq_stack_union) __aligned(PAGE_SIZE);
+1 −1
Original line number Original line Diff line number Diff line
@@ -76,7 +76,7 @@ char ignore_fpu_irq;
 * F0 0F bug workaround.. We have a special link segment
 * F0 0F bug workaround.. We have a special link segment
 * for this.
 * for this.
 */
 */
gate_desc idt_table[256]
gate_desc idt_table[NR_VECTORS]
	__attribute__((__section__(".data.idt"))) = { { { { 0, 0 } } }, };
	__attribute__((__section__(".data.idt"))) = { { { { 0, 0 } } }, };
#endif
#endif