patch-2.3.99-pre6 linux/arch/sh/kernel/irq_imask.c
Next file: linux/arch/sh/kernel/irq_onchip.c
Previous file: linux/arch/sh/kernel/irq.c
Back to the patch index
Back to the overall index
-  Lines: 28
-  Date:
Mon Apr 24 13:54:17 2000
-  Orig file: 
v2.3.99-pre5/linux/arch/sh/kernel/irq_imask.c
-  Orig date: 
Tue Apr 11 15:09:14 2000
diff -u --recursive --new-file v2.3.99-pre5/linux/arch/sh/kernel/irq_imask.c linux/arch/sh/kernel/irq_imask.c
@@ -43,7 +43,7 @@
 }
 
 static struct hw_interrupt_type imask_irq_type = {
-	"Interrupt using IMASK of SR register",
+	"SR.IMASK",
 	startup_imask_irq,
 	shutdown_imask_irq,
 	enable_imask_irq,
@@ -56,13 +56,13 @@
 {
 	unsigned long __dummy;
 
-	asm volatile("ldc	%2, $r5_bank\n\t"
+	asm volatile("ldc	%2, $r6_bank\n\t"
 		     "stc	$sr, %0\n\t"
 		     "and	#0xf0, %0\n\t"
-		     "shlr8	%0\n\t"
-		     "cmp/eq	#0x0f, %0\n\t"
-		     "bt	1f	! CLI-ed\n\t"
-		     "stc	$sr, %0\n\t"
+		     "shlr2	%0\n\t"
+		     "cmp/eq	#0x3c, %0\n\t"
+		     "bt/s	1f	! CLI-ed\n\t"
+		     " stc	$sr, %0\n\t"
 		     "and	%1, %0\n\t"
 		     "or	%2, %0\n\t"
 		     "ldc	%0, $sr\n"
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)