Lines Matching refs:g2

122 	SFMMU_CPU_CNUM(%o1, %g1, %g2)		! %g1 = sfmmu cnum on this CPU
189 * %g2 = sfmmup
197 cmp %g3, %g2
210 SFMMU_CPU_CNUM(%g2, %g6, %g3) ! %g6 = sfmmu cnum on this CPU
212 ldub [%g2 + SFMMU_CEXT], %g4 ! %g4 = sfmmup->cext
218 srlx %g5, CTXREG_NEXT_SHIFT, %g2 ! %g2 = nucleus pgsz
219 sllx %g2, CTXREG_NEXT_SHIFT, %g2 ! preserve nucleus pgsz
220 or %g6, %g2, %g6 ! %g6 = nucleus pgsz | primary pgsz | cnum
245 * %g2 = <sfmmup58|pgcnt6>
256 and %g4, %g2, %g3 /* g3 = pgcnt - 1 */
259 andn %g2, SFMMU_PGCNT_MASK, %g2 /* g2 = sfmmup */
264 cmp %g4, %g2
270 set MMU_PAGESIZE, %g2 /* g2 = pgsize */
279 add %g1, %g2, %g1 /* next page */
285 * g2 = sfmmup
288 SFMMU_CPU_CNUM(%g2, %g5, %g6) ! %g5 = sfmmu cnum on this CPU
292 ldub [%g2 + SFMMU_CEXT], %g4 ! %g4 = sfmmup->cext
298 srlx %g6, CTXREG_NEXT_SHIFT, %g2 /* %g2 = nucleus pgsz */
299 sllx %g2, CTXREG_NEXT_SHIFT, %g2 /* preserve nucleus pgsz */
300 or %g5, %g2, %g5 /* %g5 = nucleus pgsz | primary pgsz | cnum */
303 set MMU_PAGESIZE, %g2 /* g2 = pgsize */
312 add %g1, %g2, %g1 /* next page */
489 mov IDDR_1, %g2
496 stxa %o1, [%g2]ASI_INTR_DISPATCH
526 sll %o1, IDCR_BN_SHIFT, %g2 ! IDCR<28:24> = b/n pair
528 or %g1, %g2, %g1
883 mov %g0, %g2 ;\
1236 * 1. Save globals %g1, %g2 & %g3 onto the scratchpad regs.
1267 * %g1, %g2 & %g3 whenever we enter this trap handler.
1287 OPL_TRAPTRACE(%g1, %g2, %g3, opl_sync_trap_lb)
1296 rdpr %tpc, %g2 ! use %tpc for faultaddr instead
1301 rdpr %tpc, %g2 ! use %tpc as faultaddr
1304 ldxa [%g3]ASI_IMMU, %g2
1309 mov MMU_SFAR, %g2 ! set %g2 to use SFAR
1311 ldxa [%g2]ASI_DMMU, %g2 ! for faultaddr
1315 movnz %xcc, OPL_MMU_SFPAR, %g2 ! Use SFPAR instead of SFAR for
1316 ldxa [%g2]ASI_DMMU, %g2 ! faultaddr
1325 * Only %g1, %g2 and %g3 are allowed
1334 LOG_SYNC_REG(%g1, %g2, %g3) ! Record into the error log
1336 ldxa [%g3]ASI_SCRATCHPAD, %g2
1337 sub %g2, 1, %g2 ! decrement error counter by 1
1338 stxa %g2, [%g3]ASI_SCRATCHPAD ! update the errlog scratchreg
1339 OPL_RESTORE_GLOBAL(%g1, %g2, %g3)
1354 mov %g2, %g6 ! %g6 = SFPAR or SFAR/tpc
1355 LOG_SYNC_REG(%g1, %g2, %g3) ! Record into the error log
1376 sethi %hi(SFSR_UE), %g2
1377 andcc %g5, %g2, %g0 ! check for UE
1382 RESET_USER_RTT_REGS(%g2, %g3, opl_sync_trap_resetskip)
1385 mov %g6, %g2 ! pass SFAR to the 2nd arg
1394 mov %g6, %g2 ! pass SFAR to the 2nd arg
1453 set ASI_UGERSR, %g2
1454 ldxa [%g2]ASI_AFSR, %g1 ! Read the UGERSR reg
1456 set UGESR_MULTI, %g2
1457 andcc %g1, %g2, %g0 ! Check for Multi-errs
1460 set AFSR_ECR, %g2
1461 ldxa [%g2]ASI_AFSR, %g3 ! Enable Weak error
1463 stxa %g3, [%g2]ASI_AFSR ! potential error storms
1468 set UGESR_CAN_RECOVER, %g2 ! Check for recoverable
1469 andcc %g1, %g2, %g0 ! errors i.e.IUG_DTLB,
1487 srlx %g1, 4, %g2 ! shift INSTEND[5:4] -> [1:0]
1488 and %g2, 3, %g2 ! extract the shifted [1:0] bits
1489 cmp %g2, 3 ! check if INSTEND is recoverable
1493 ldxa [%g3]ASI_SCRATCHPAD, %g2 ! Read errlog scratch reg
1494 and %g2, ERRLOG_REG_NUMERR_MASK, %g3! Extract error count and
1498 sub %g2, 1, %g2 ! Subtract one from the count
1500 stxa %g2, [%g3]ASI_SCRATCHPAD ! count into the errlog reg
1501 LOG_UGER_REG(%g1, %g2, %g3) ! Log the error info
1503 OPL_TRAPTRACE(%g1, %g2, %g3, opl_uger_trap_lb)
1517 set UGESR_IAUG_CRE, %g2
1518 andcc %g1, %g2, %g0
1521 IAG_CRE(%g2, %g3)
1522 set AFSR_ECR, %g2
1523 ldxa [%g2]ASI_AFSR, %g3
1525 stxa %g3, [%g2]ASI_AFSR
1530 set UGESR_IAUG_TSBCTXT, %g2
1531 andcc %g1, %g2, %g0
1534 GET_CPU_IMPL(%g2)
1535 cmp %g2, JUPITER_IMPL
1538 RESET_SHARED_CTXT(%g2)
1540 RESET_MMU_REGS(%g2, %g3, %g4)
1545 set UGESR_IUG_TSBP, %g2
1546 andcc %g1, %g2, %g0
1549 GET_CPU_IMPL(%g2)
1550 cmp %g2, JUPITER_IMPL
1553 RESET_TSB_PREFETCH(%g2)
1555 RESET_TSB_TAGPTR(%g2)
1561 RESET_MMU_REGS(%g2, %g3, %g4)
1566 set UGESR_IUG_PSTATE, %g2
1567 andcc %g1, %g2, %g0
1570 RESET_CUR_TSTATE(%g2)
1575 set UGESR_IUG_TSTATE, %g2
1576 andcc %g1, %g2, %g0
1579 RESET_PREV_TSTATE(%g2, %g3, opl_uger_tstate_1)
1584 set UGESR_IUG_F, %g2
1585 andcc %g1, %g2, %g0
1588 CLEAR_FPREGS(%g2)
1593 set UGESR_IUG_R, %g2
1594 andcc %g1, %g2, %g0
1597 CLEAR_GEN_REGS(%g2, opl_uger_r_1)
1602 mov %g1, %g2 ! %g2 = arg #1
1608 mov %g1, %g2 ! %g2 = arg #1
1614 * %g2 = arg #1 already set above
1700 SAVE_WREGS(%g2, %g6)
1705 RESTORE_WREGS(%g2, %g5)
1718 SAVE_WREGS(%g2, %g6)
1723 RESTORE_WREGS(%g2, %g5)
1743 OPL_SAVE_GLOBAL(%g1,%g2,%g3)
2088 rdpr %tick, %g2 /* get tick register */
2089 brgez,pn %g2, 1f /* if NPT bit off, we're done */
2095 rdpr %tick, %g2 /* get tick register */
2096 wrpr %g3, %g2, %tick /* write tick register, */
2099 rd STICK, %g2 /* get stick register */
2100 brgez,pn %g2, 3f /* if NPT bit off, we're done */
2106 rd STICK, %g2 /* get stick register */
2107 wr %g3, %g2, STICK /* write stick register, */