aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/include/asm/desc.h22
1 files changed, 0 insertions, 22 deletions
diff --git a/arch/x86/include/asm/desc.h b/arch/x86/include/asm/desc.h
index 3d73437600d7..50d033a8947d 100644
--- a/arch/x86/include/asm/desc.h
+++ b/arch/x86/include/asm/desc.h
@@ -392,32 +392,10 @@ static inline void alloc_system_vector(int vector)
392 } 392 }
393} 393}
394 394
395#ifdef CONFIG_TRACING
396static inline void trace_set_intr_gate(unsigned int gate, void *addr)
397{
398 gate_desc s;
399
400 pack_gate(&s, GATE_INTERRUPT, (unsigned long)addr, 0, 0, __KERNEL_CS);
401 write_idt_entry(trace_idt_table, gate, &s);
402}
403
404static inline void __trace_alloc_intr_gate(unsigned int n, void *addr)
405{
406 trace_set_intr_gate(n, addr);
407}
408#else
409static inline void trace_set_intr_gate(unsigned int gate, void *addr)
410{
411}
412
413#define __trace_alloc_intr_gate(n, addr)
414#endif
415
416#define alloc_intr_gate(n, addr) \ 395#define alloc_intr_gate(n, addr) \
417 do { \ 396 do { \
418 alloc_system_vector(n); \ 397 alloc_system_vector(n); \
419 set_intr_gate(n, addr); \ 398 set_intr_gate(n, addr); \
420 __trace_alloc_intr_gate(n, trace_##addr); \
421 } while (0) 399 } while (0)
422 400
423/* 401/*