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>
This commit is contained in:

committed by
Ingo Molnar

parent
e3d0e69268
commit
9ff8094299
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user