changelog shortlog tags branches changeset file revisions annotate raw help

Mercurial > hg > plan9front / sys/src/9/bcm64/trap.c

revision 7313: db3e8d004b27
parent 7268: cbd1f567e273
child 7348: c4f4103af49b
     1.1--- a/sys/src/9/bcm64/trap.c
     1.2+++ b/sys/src/9/bcm64/trap.c
     1.3@@ -10,6 +10,8 @@
     1.4 #include "ureg.h"
     1.5 #include "sysreg.h"
     1.6 
     1.7+int	(*buserror)(Ureg*);
     1.8+
     1.9 /* SPSR bits user can modify */
    1.10 #define USPSRMASK	(0xFULL<<28)
    1.11 
    1.12@@ -141,6 +143,8 @@ trap(Ureg *ureg)
    1.13 		}
    1.14 		if(intr == 3){
    1.15 	case 0x2F:	// SError interrupt
    1.16+			if(buserror != nil && (*buserror)(ureg))
    1.17+				break;
    1.18 			dumpregs(ureg);
    1.19 			panic("SError interrupt");
    1.20 			break;