Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Jun 2004 08:09:28 GMT
From:      Juli Mallett <jmallett@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 54995 for review
Message-ID:  <200406150809.i5F89Sb3081840@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=54995

Change 54995 by jmallett@jmallett_oingo on 2004/06/15 08:09:01

	Up critical section on the running thread before dispatching an
	interrupt, it may result in a context switch, and we need to avoid
	that if we're already in a critical section.

Affected files ...

.. //depot/projects/mips/sys/mips/mips/trap.c#23 edit

Differences ...

==== //depot/projects/mips/sys/mips/mips/trap.c#23 (text+ko) ====

@@ -119,7 +119,9 @@
 		goto done;
 	case TrInt:
 		/*platform_trap_exit();*/
+		critical_enter();
 		platform_intr(tf);
+		critical_exit();
 		goto done;
 	case TrAdEL:
 	case TrDBE:



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