diff options
author | Cyrill Gorcunov <gorcunov@openvz.org> | 2009-07-08 18:03:53 (GMT) |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-07-10 11:57:13 (GMT) |
commit | 9ff80942992cd5abd0779c815f310f65b7b83860 (patch) | |
tree | cd955d10167332410052bb19d882ca17e082984c /arch/x86/kernel/traps.c | |
parent | e3d0e69268dffb9676bf0800a60fb3573a723480 (diff) | |
download | linux-9ff80942992cd5abd0779c815f310f65b7b83860.tar.xz |
x86: Clean up idt_descr and idt_tableby using NR_VECTORS instead of hardcoded number
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Cc: Yinghai Lu <yinghai@kernel.org>
LKML-Reference: <20090708180353.GH5301@lenovo>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/traps.c')
-rw-r--r-- | arch/x86/kernel/traps.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/traps.c b/arch/x86/kernel/traps.c index 5204332..7e4b1f5 100644 --- a/arch/x86/kernel/traps.c +++ b/arch/x86/kernel/traps.c @@ -76,7 +76,7 @@ char ignore_fpu_irq; * F0 0F bug workaround.. We have a special link segment * for this. */ -gate_desc idt_table[256] +gate_desc idt_table[NR_VECTORS] __attribute__((__section__(".data.idt"))) = { { { { 0, 0 } } }, }; #endif |