diff options
author | kmacy <kmacy@FreeBSD.org> | 2006-11-15 03:20:12 +0000 |
---|---|---|
committer | kmacy <kmacy@FreeBSD.org> | 2006-11-15 03:20:12 +0000 |
commit | 5a8d897a3d25c51d248a97017118c6bc991883cc (patch) | |
tree | 8c9c4e93e522c9ec249e0ee59b65750a4e310012 | |
parent | b5d64aeac05aa667cee7f044d3db73f5cfd4d5fd (diff) | |
download | FreeBSD-src-5a8d897a3d25c51d248a97017118c6bc991883cc.zip FreeBSD-src-5a8d897a3d25c51d248a97017118c6bc991883cc.tar.gz |
add trap tracing to dev_mondo
-rw-r--r-- | sys/sun4v/sun4v/interrupt.S | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/sun4v/sun4v/interrupt.S b/sys/sun4v/sun4v/interrupt.S index 5281409..ab59ae4 100644 --- a/sys/sun4v/sun4v/interrupt.S +++ b/sys/sun4v/sun4v/interrupt.S @@ -249,6 +249,16 @@ dev_mondo(void) * */ ENTRY(dev_mondo) +#ifdef TRAP_TRACING + GET_PCPU_PHYS_SCRATCH(%g1) + rdpr %tl, %g1 + dec %g1 + sll %g1, RW_SHIFT, %g1 + add %g1, PC_TSBWBUF, %g1 + add PCPU_REG, %g1, %g1 + wr %g0, ASI_REAL, %asi + TTRACE_ADD_SAFE(%g1, 0, 0, 0, 0, 0) +#endif /* * Register Usage:- * %g5 inum |