patch-2.1.51 linux/arch/mips/kernel/irq.c

Next file: linux/arch/mips/kernel/mips_ksyms.c
Previous file: linux/arch/mips/kernel/irixsig.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.50/linux/arch/mips/kernel/irq.c linux/arch/mips/kernel/irq.c
@@ -11,7 +11,7 @@
  *
  * Mips support by Ralf Baechle and Andreas Busse
  *
- * $Id: irq.c,v 1.6 1997/06/30 15:52:34 ralf Exp $
+ * $Id: irq.c,v 1.7 1997/08/08 18:12:24 miguel Exp $
  */
 #include <linux/config.h>
 #include <linux/errno.h>
@@ -51,6 +51,9 @@
 static inline void mask_irq(unsigned int irq_nr)
 {
 	unsigned char mask;
+    
+        if (irq_nr >= 16)
+	    return;
 
 	mask = 1 << (irq_nr & 7);
 	if (irq_nr < 8) {
@@ -65,6 +68,9 @@
 static inline void unmask_irq(unsigned int irq_nr)
 {
 	unsigned char mask;
+
+        if (irq_nr >= 16)
+	    return;
 
 	mask = ~(1 << (irq_nr & 7));
 	if (irq_nr < 8) {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov