@@ -390,16 +390,6 @@ static inline void set_desc_limit(struct desc_struct *desc, unsigned long limit)
390
390
desc -> limit1 = (limit >> 16 ) & 0xf ;
391
391
}
392
392
393
- #ifdef CONFIG_X86_64
394
- static inline void set_nmi_gate (int gate , void * addr )
395
- {
396
- gate_desc s ;
397
-
398
- pack_gate (& s , GATE_INTERRUPT , (unsigned long )addr , 0 , 0 , __KERNEL_CS );
399
- write_idt_entry (debug_idt_table , gate , & s );
400
- }
401
- #endif
402
-
403
393
static inline void _set_gate (int gate , unsigned type , const void * addr ,
404
394
unsigned dpl , unsigned ist , unsigned seg )
405
395
{
@@ -437,32 +427,6 @@ static inline void alloc_system_vector(int vector)
437
427
set_intr_gate(n, addr); \
438
428
} while (0)
439
429
440
- /*
441
- * This routine sets up an interrupt gate at directory privilege level 3.
442
- */
443
- static inline void set_system_intr_gate (unsigned int n , void * addr )
444
- {
445
- BUG_ON ((unsigned )n > 0xFF );
446
- _set_gate (n , GATE_INTERRUPT , addr , 0x3 , 0 , __KERNEL_CS );
447
- }
448
-
449
- static inline void set_task_gate (unsigned int n , unsigned int gdt_entry )
450
- {
451
- BUG_ON ((unsigned )n > 0xFF );
452
- _set_gate (n , GATE_TASK , (void * )0 , 0 , 0 , (gdt_entry <<3 ));
453
- }
454
-
455
- static inline void set_intr_gate_ist (int n , void * addr , unsigned ist )
456
- {
457
- BUG_ON ((unsigned )n > 0xFF );
458
- _set_gate (n , GATE_INTERRUPT , addr , 0 , ist , __KERNEL_CS );
459
- }
460
-
461
- static inline void set_system_intr_gate_ist (int n , void * addr , unsigned ist )
462
- {
463
- BUG_ON ((unsigned )n > 0xFF );
464
- _set_gate (n , GATE_INTERRUPT , addr , 0x3 , ist , __KERNEL_CS );
465
- }
466
430
467
431
#ifdef CONFIG_X86_64
468
432
DECLARE_PER_CPU (u32 , debug_idt_ctr );
0 commit comments