PERFORCE change 54399 for review

Juli Mallett jmallett at FreeBSD.org
Tue Jun 8 05:46:41 GMT 2004


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

Change 54399 by jmallett at jmallett_oingo on 2004/06/08 05:46:09

	Notes to self on lessons not to be learned from Alpha.

Affected files ...

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

Differences ...

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

@@ -117,9 +117,16 @@
 		return (tf);
 	case TrInt:
 		platform_trap_exit();
-		atomic_add_int(&curthread->td_intr_nesting_level, 1);
+#if 0
+		/*
+		 * It looks like these break interrupt preemption.
+		 */
+		critical_enter();
+#endif
 		platform_intr(tf);
-		atomic_subtract_int(&curthread->td_intr_nesting_level, 1);
+#if 0
+		critical_exit();
+#endif
 		if (curthread)
 			tf = curthread->td_frame;
 		return (tf);


More information about the p4-projects mailing list