PERFORCE change 41098 for review

Juli Mallett jmallett at FreeBSD.org
Sun Nov 2 01:08:25 PST 2003


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

Change 41098 by jmallett at jmallett_dalek on 2003/11/02 01:08:20

	Perform per-platform trap exit stuff after a tlbmod.  Also
	print the curthread.

Affected files ...

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

Differences ...

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

@@ -30,6 +30,7 @@
 #include <sys/param.h>
 #include <sys/kernel.h>
 #include <sys/systm.h>
+#include <sys/proc.h>
 
 #include <vm/vm.h>
 #include <vm/pmap.h>
@@ -105,6 +106,7 @@
 	case T_TLB_MOD:
 		/* XXX Kernel only. */
 		tlb_modified(badvaddr);
+		platform_trap_exit();
 		return;
 	default:
 		/* Fatal! */
@@ -129,6 +131,7 @@
 	printf("bad virtual address = %p\n", badvaddr);
 	printf("              cause = %x\n", cause);
 	printf("             status = %lx\n", tf->tf_regs[TF_SR]);
+	printf("     current thread = %p\n", curthread);
 
 	switch (code) {
 	case T_BREAK:


More information about the p4-projects mailing list