Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Mar 2007 20:15:41 GMT
From:      Oleksandr Tymoshenko <gonzo@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 115997 for review
Message-ID:  <200703162015.l2GKFfmo002745@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help

http://perforce.freebsd.org/chv.cgi?CH=115997

Change 115997 by gonzo@gonzo_jeeves on 2007/03/16 20:15:19

	o Use intr_disable/intr_restore combination instead of
	    intr_disable/intr_enable.

Affected files ...

.. //depot/projects/mips2/src/sys/mips/mips/nexus.c#3 edit

Differences ...

==== //depot/projects/mips2/src/sys/mips/mips/nexus.c#3 (text+ko) ====

@@ -128,12 +128,12 @@
 {
 	int irq;
 
-	intr_disable();
+	register_t sr = intr_disable();
 	irq = rman_get_start(res);
 	if(irq > 5)
 		return(0);
 	cpu_establish_hardintr(irq, intr, arg);
-	intr_enable();
+	intr_restore(sr);
 	return (0);
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200703162015.l2GKFfmo002745>