Lines Matching refs:g4
136 sethi %hi(syscalltrace), %g4
137 ld [%g4 + %lo(syscalltrace)], %g4
138 orcc %g3, %g4, %g0 ! pre_syscall OR syscalltrace?
169 sll %g1, SYSENT_SHIFT, %g4 ! delay - get index
170 add %g3, %g4, %l4
192 andn %g5, PSTATE_IE | PSTATE_AM, %g4
193 wrpr %g0, %g4, %pstate ! disable interrupt
194 TRACE_PTR(%g4, %g2) ! get trace pointer
196 stxa %g2, [%g4 + TRAP_ENT_TICK]%asi
198 TRACE_SAVE_TL_VAL(%g4, %g2)
199 TRACE_SAVE_GL_VAL(%g4, %g0)
201 stha %g2, [%g4 + TRAP_ENT_TT]%asi
203 stna %g2, [%g4 + TRAP_ENT_TPC]%asi
205 stxa %g2, [%g4 + TRAP_ENT_TSTATE]%asi
206 stna %sp, [%g4 + TRAP_ENT_SP]%asi
207 stna THREAD_REG, [%g4 + TRAP_ENT_TR]%asi
208 stna %o0, [%g4 + TRAP_ENT_F1]%asi
209 stna %o1, [%g4 + TRAP_ENT_F2]%asi
210 stna %g0, [%g4 + TRAP_ENT_F3]%asi
211 stna %g0, [%g4 + TRAP_ENT_F4]%asi
212 TRACE_NEXT(%g4, %g2, %g3) ! set new trace pointer
222 sethi %hi(syscalltrace), %g4
223 ld [%g4 + %lo(syscalltrace)], %g4
224 orcc %g4, %g1, %g0 ! OR in syscalltrace
238 add %g2, 4, %g4 ! calc new npc
241 stn %g4, [%l1 + nPC_OFF]
381 sethi %hi(syscalltrace), %g4
382 ld [%g4 + %lo(syscalltrace)], %g4
383 orcc %g3, %g4, %g0 ! pre_syscall OR syscalltrace?
412 sll %g1, SYSENT_SHIFT, %g4 ! delay - get index
413 add %g3, %g4, %g5 ! g5 = addr of sysentry
427 sll %o0, SYSENT_SHIFT, %g4 ! delay - get index
428 add %g4, %l4, %l4 ! compute & save addr of sysent
437 lduh [%l4 + SY_FLAGS], %g4 ! load sy_flags
438 andcc %g4, SE_64RVAL | SE_32RVAL2, %g0 ! check for 64-bit return
450 andn %g5, PSTATE_IE | PSTATE_AM, %g4
451 wrpr %g0, %g4, %pstate ! disable interrupt
452 TRACE_PTR(%g4, %g2) ! get trace pointer
454 stxa %g2, [%g4 + TRAP_ENT_TICK]%asi
456 TRACE_SAVE_TL_VAL(%g4, %g2)
457 TRACE_SAVE_GL_VAL(%g4, %g0)
459 stha %g2, [%g4 + TRAP_ENT_TT]%asi
461 stna %g2, [%g4 + TRAP_ENT_TPC]%asi
463 stxa %g2, [%g4 + TRAP_ENT_TSTATE]%asi
464 stna %sp, [%g4 + TRAP_ENT_SP]%asi
465 stna THREAD_REG, [%g4 + TRAP_ENT_TR]%asi
466 stna %o0, [%g4 + TRAP_ENT_F1]%asi
467 stna %o1, [%g4 + TRAP_ENT_F2]%asi
468 stna %g0, [%g4 + TRAP_ENT_F3]%asi
469 stna %g0, [%g4 + TRAP_ENT_F4]%asi
470 TRACE_NEXT(%g4, %g2, %g3) ! set new trace pointer
480 sethi %hi(syscalltrace), %g4
481 ld [%g4 + %lo(syscalltrace)], %g4
482 orcc %g4, %g1, %g0 ! OR in syscalltrace
496 add %g2, 4, %g4 ! calc new npc
499 stx %g4, [%l1 + nPC_OFF]