PERFORCE change 48876 for review

Juli Mallett jmallett at FreeBSD.org
Sat Mar 13 00:37:10 PST 2004


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

Change 48876 by jmallett at jmallett_oingo on 2004/03/13 00:36:14

	Interrupt?  Sure, why not.

Affected files ...

.. //depot/projects/mips/sys/mips/include/hwfunc.h#4 edit
.. //depot/projects/mips/sys/mips/mips/trap.c#17 edit

Differences ...

==== //depot/projects/mips/sys/mips/include/hwfunc.h#4 (text+ko) ====

@@ -28,12 +28,15 @@
 #ifndef _MACHINE_HWFUNC_H_
 #define	_MACHINE_HWFUNC_H_
 
+struct trapframe;
+
 /*
  * Hooks downward into hardware functionality.
  */
 
 void platform_configure(void);
 void platform_halt(void);
+void platform_intr(struct trapframe *);
 void platform_reset(void);
 void platform_start(int, char *[]);
 

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

@@ -40,6 +40,7 @@
 #include <machine/pte.h>
 #include <machine/tlb.h>
 #include <machine/trap.h>
+#include <machine/hwfunc.h>
 
 #ifdef DDB
 #include <machine/db_machdep.h>
@@ -108,6 +109,12 @@
 		tlb_modified(badvaddr);
 		platform_trap_exit();
 		return;
+	case TrInt:
+		platform_trap_exit();
+		atomic_add_int(&curthread->td_intr_nesting_level, 1);
+		platform_intr(tf);
+		atomic_subtract_int(&curthread->td_intr_nesting_level, 1);
+		return;
 	default:
 		/* Fatal! */
 		break;


More information about the p4-projects mailing list