Remove classmate debug patch
[lcapit-linux-patches.git] / 2.6.27-ncc / 0005-NCC-traps_32.c-Do-not-initialize-idt_table.patch
blob453907dfa32800318c25b4d37aaea50f38af2bc1
1 From 4c8247ae9adb9c4a544cf440c6ee67e71ce0b242 Mon Sep 17 00:00:00 2001
2 From: Luiz Fernando N. Capitulino <lcapitulino@mandriva.com.br>
3 Date: Fri, 10 Oct 2008 10:51:03 -0300
4 Subject: [PATCH] NCC: traps_32.c: Do not initialize idt_table
6 Otherwise ncc will fail with the following error:
8 """
9 ncc-error : open
10 /home/lcapitulino/src/kernels/upstream/linux-2.6-ncc/arch/x86/kernel/traps_32.c (79): syntax error:") ) ) ] ; ; int system_call ( void ) ; char ignore_fpu_irq ; gate_desc idt_table [ 256 ] = { { { { 0 , 0 } } } , } ; int panic_on_unrecovered_nmi ; int kstack_depth_to_print = 24 ; static unsigned int code_bytes = 64 ; static "
11 make[1]: *** [arch/x86/kernel/traps_32.o] Error 1
12 make: *** [arch/x86/kernel] Error 2
13 """
15 Signed-off-by: Luiz Fernando N. Capitulino <lcapitulino@mandriva.com.br>
16 ---
17 arch/x86/kernel/traps_32.c | 6 ++++++
18 1 files changed, 6 insertions(+), 0 deletions(-)
20 diff --git a/arch/x86/kernel/traps_32.c b/arch/x86/kernel/traps_32.c
21 index 03df8e4..a98937f 100644
22 --- a/arch/x86/kernel/traps_32.c
23 +++ b/arch/x86/kernel/traps_32.c
24 @@ -75,8 +75,14 @@ char ignore_fpu_irq;
25 * F0 0F bug workaround.. We have a special link segment
26 * for this.
28 +#ifdef __NCC__
29 +gate_desc idt_table[256]
30 + __attribute__((__section__(".data.idt")));
31 +#else
32 gate_desc idt_table[256]
33 __attribute__((__section__(".data.idt"))) = { { { { 0, 0 } } }, };
34 +#endif
37 int panic_on_unrecovered_nmi;
38 int kstack_depth_to_print = 24;
39 --
40 1.5.6