Lines Matching refs:scr2
213 #define TRACE_NEXT(scr1, scr2, scr3) \ argument
214 CPU_INDEX(scr2, scr1); \
215 sll scr2, TRAPTR_SIZE_SHIFT, scr2; \
217 add scr1, scr2, scr2; \
218 ldub [scr2 + TRAPTR_ASIBUF], scr1; \
224 ld [scr2 + TRAPTR_OFFSET], scr1; \
225 ld [scr2 + TRAPTR_LIMIT], scr3; \
226 st scr1, [scr2 + TRAPTR_LAST_OFFSET]; \
231 st scr1, [scr2 + TRAPTR_OFFSET];
258 #define TRACE_RTT(code, scr1, scr2, scr3, scr4) \ argument
262 TRACE_PTR(scr1, scr2); \
263 GET_TRACE_TICK(scr2, scr3); \
264 stxa scr2, [scr1 + TRAP_ENT_TICK]%asi; \
265 rdpr %tl, scr2; \
266 stha scr2, [scr1 + TRAP_ENT_TL]%asi; \
267 set code, scr2; \
268 stha scr2, [scr1 + TRAP_ENT_TT]%asi; \
269 ldn [%l7 + PC_OFF], scr2; \
270 stna scr2, [scr1 + TRAP_ENT_TPC]%asi; \
271 ldx [%l7 + TSTATE_OFF], scr2; \
272 stxa scr2, [scr1 + TRAP_ENT_TSTATE]%asi; \
276 ldn [THREAD_REG + T_CPU], scr2; \
277 ld [scr2 + CPU_BASE_SPL], scr2; \
278 stna scr2, [scr1 + TRAP_ENT_F2]%asi; \
279 mov MMU_SCONTEXT, scr2; \
280 ldxa [scr2]ASI_DMMU, scr2; \
281 stna scr2, [scr1 + TRAP_ENT_F3]%asi; \
282 rdpr %cwp, scr2; \
283 stna scr2, [scr1 + TRAP_ENT_F4]%asi; \
284 TRACE_NEXT(scr1, scr2, scr3); \
291 #define TRACE_WIN_INFO(code, scr1, scr2, scr3) \ argument
292 TRACE_PTR(scr1, scr2); \
293 GET_TRACE_TICK(scr2, scr3); \
294 stxa scr2, [scr1 + TRAP_ENT_TICK]%asi; \
295 rdpr %tl, scr2; \
296 stha scr2, [scr1 + TRAP_ENT_TL]%asi; \
297 rdpr %tt, scr2; \
299 or scr2, scr3, scr2; \
300 stha scr2, [scr1 + TRAP_ENT_TT]%asi; \
301 rdpr %tstate, scr2; \
302 stxa scr2, [scr1 + TRAP_ENT_TSTATE]%asi; \
304 rdpr %tpc, scr2; \
305 stna scr2, [scr1 + TRAP_ENT_TPC]%asi; \
306 set TT_FSPILL_DEBUG, scr2; \
307 stna scr2, [scr1 + TRAP_ENT_TR]%asi; \
308 rdpr %pstate, scr2; \
309 stna scr2, [scr1 + TRAP_ENT_F1]%asi; \
310 rdpr %cwp, scr2; \
311 sll scr2, 24, scr2; \
314 or scr2, scr3, scr2; \
316 or scr2, scr3, scr2; \
317 stna scr2, [scr1 + TRAP_ENT_F2]%asi; \
318 rdpr %otherwin, scr2; \
319 sll scr2, 24, scr2; \
322 or scr2, scr3, scr2; \
324 or scr2, scr3, scr2; \
325 stna scr2, [scr1 + TRAP_ENT_F3]%asi; \
327 TRACE_NEXT(scr1, scr2, scr3)
331 #define FAULT_WINTRACE(scr1, scr2, scr3, type) \ argument
332 TRACE_PTR(scr1, scr2); \
333 GET_TRACE_TICK(scr2, scr3); \
334 stxa scr2, [scr1 + TRAP_ENT_TICK]%asi; \
335 rdpr %tl, scr2; \
336 stha scr2, [scr1 + TRAP_ENT_TL]%asi; \
337 set type, scr2; \
338 stha scr2, [scr1 + TRAP_ENT_TT]%asi; \
339 rdpr %tpc, scr2; \
340 stna scr2, [scr1 + TRAP_ENT_TPC]%asi; \
341 rdpr %tstate, scr2; \
342 stxa scr2, [scr1 + TRAP_ENT_TSTATE]%asi; \
347 rdpr %pil, scr2; \
348 stna scr2, [scr1 + TRAP_ENT_F3]%asi; \
350 TRACE_NEXT(scr1, scr2, scr3)
354 #define SYSTRAP_TRACE(scr1, scr2, scr3) \ argument
355 TRACE_PTR(scr1, scr2); \
356 GET_TRACE_TICK(scr2, scr3); \
357 stxa scr2, [scr1 + TRAP_ENT_TICK]%asi; \
358 rdpr %tl, scr2; \
359 stha scr2, [scr1 + TRAP_ENT_TL]%asi; \
361 rdpr %tt, scr2; \
362 or scr3, scr2, scr2; \
363 stha scr2, [scr1 + TRAP_ENT_TT]%asi; \
364 rdpr %tpc, scr2; \
365 stna scr2, [scr1 + TRAP_ENT_TPC]%asi; \
366 rdpr %tstate, scr2; \
367 stxa scr2, [scr1 + TRAP_ENT_TSTATE]%asi; \
372 rdpr %pil, scr2; \
373 stna scr2, [scr1 + TRAP_ENT_F3]%asi; \
374 rdpr %cwp, scr2; \
375 stna scr2, [scr1 + TRAP_ENT_F4]%asi; \
376 TRACE_NEXT(scr1, scr2, scr3)
380 #define FAULT_WINTRACE(scr1, scr2, scr3, type) argument
381 #define SYSTRAP_TRACE(scr1, scr2, scr3) argument