]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-x86_64/desc.h
Merge x86-64 update from Andi
[linux-2.6-omap-h63xx.git] / include / asm-x86_64 / desc.h
index b837820c90733c51534d7eb100a160f19e251fe5..33764869387bc1c5ad9a707df503e5eef0c8bedf 100644 (file)
@@ -98,16 +98,19 @@ static inline void _set_gate(void *adr, unsigned type, unsigned long func, unsig
 
 static inline void set_intr_gate(int nr, void *func) 
 { 
+       BUG_ON((unsigned)nr > 0xFF);
        _set_gate(&idt_table[nr], GATE_INTERRUPT, (unsigned long) func, 0, 0); 
 } 
 
 static inline void set_intr_gate_ist(int nr, void *func, unsigned ist) 
 { 
+       BUG_ON((unsigned)nr > 0xFF);
        _set_gate(&idt_table[nr], GATE_INTERRUPT, (unsigned long) func, 0, ist); 
 } 
 
 static inline void set_system_gate(int nr, void *func) 
 { 
+       BUG_ON((unsigned)nr > 0xFF);
        _set_gate(&idt_table[nr], GATE_INTERRUPT, (unsigned long) func, 3, 0); 
 }