mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
add trap tracing to dev_mondo
This commit is contained in:
parent
f30d482097
commit
33719d6b50
1 changed files with 10 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue