Home
last modified time | relevance | path

Searched refs:g1 (Results 1 – 25 of 203) sorted by relevance

123456789

/titanic_50/usr/src/uts/sparc/ml/
H A Dsparc_ddi.s71 mov %o7, %g1; \
73 mov %g1, %o7
156 ldn [%o0 + DEVI_DEV_OPS], %g1 ! dip->dev_ops
157 ldn [%g1 + DEVI_BUS_OPS], %g1 ! dip->dev_ops->devo_bus_ops
158 ldn [%g1 + OPS_CTL], %g1 ! dip->dev_ops->devo_bus_ops->bus_ctl
159 jmpl %g1, %g0 ! bop off to new routine
182 ldn [%o0 + DEVI_DEV_OPS], %g1 ! dip->dev_ops
183 ldn [%g1 + DEVI_BUS_OPS], %g1 ! dip->dev_ops->devo_bus_ops
184 ldn [%g1 + OPS_ALLOCHDL], %g1
186 jmpl %g1, %g0 ! bop off to new routine
[all …]
/titanic_50/usr/src/cmd/mdb/sparc/v9/kmdb/
H A Dkaif_startup.s46 set mdb, %g1; \
47 ldx [%g1 + MDB_KDI], %g1; \
48 ldx [%g1 + MKDI_CPU_INDEX], %g1; \
50 jmp %g1; \
154 stx %g1, [%o5 + KREG_OFF(KREG_G1)]
187 ADD_CRUMB(%g6, KRM_PC, %g4, %g1)
189 ADD_CRUMB(%g6, KRM_TT, %g4, %g1)
207 set kaif_master_cpuid, %g1
208 ld [%g1], %g1
210 cmp %g1, %g2
[all …]
H A Dkmdb_start.s53 GET_NWIN(%g1, %g2); /* %g1 is scratch, %g2 set to nwin-1 */
59 set kmdb_main_stack, %g1
60 ldx [%g1], %g1
65 add %g1, %g2, %g1
66 sub %g1, 1, %g1
67 and %g1, -STACK_ALIGN64, %g1
68 sub %g1, SA64(MINFRAME) + V9BIAS64, %sp
/titanic_50/usr/src/common/crypto/arcfour/sun4u/
H A Darcfour_crypt_asm.s65 ldub [%i0+256], %g1
70 add %g1, 1, %o1
74 add %o1, 1, %g1
77 and %g1, 255, %g1
80 ldub [%i5 + %g1], %g3
91 subcc %o2, %g1, %g0
101 add %g1, 1, %o1
108 stb %g4, [%i5 + %g1]
109 add %o1, 1, %g1
114 and %g1, 255, %g1
[all …]
/titanic_50/usr/src/lib/libc/sparc/gen/
H A Dstrncpy.s106 andn %i5, %i1, %g1 ! ~dword & 0x80808080
108 andcc %l0, %g1, %g0 ! ((dword - 0x01010101) & ~dword & 0x80808080)
117 srl %i1, 24, %g1 ! first byte
118 stb %g1, [%l0] ! store it
119 sub %g1, 1, %g1 ! byte == 0 ? -1 : byte - 1
120 sra %g1, 31, %g1 ! byte == 0 ? -1 : 0
121 andn %i1, %g1, %i1 ! if byte == 0, start padding with null bytes
122 srl %i1, 16, %g1 ! second byte
123 stb %g1, [%l0 + 1] ! store it
124 and %g1, 0xff, %g1 ! isolate byte
[all …]
H A Dstrlcpy.s84 andcc %l0, 3, %g1 ! word aligned?
92 andn %i5, %l1, %g1 ! ~word & 0x80808080
94 andcc %l0, %g1, %g0 ! doit
100 srl %l1, 24, %g1 ! 1st byte
101 andcc %g1, 0xff, %g0 ! test for end
103 stb %g1, [%i2] ! store byte
105 srl %l1, 16, %g1 ! 2nd byte
106 andcc %g1, 0xff, %g0 ! zero byte ?
108 stb %g1, [%i2] ! store byte
110 srl %l1, 8, %g1 ! 3rd byte
[all …]
/titanic_50/usr/src/lib/libc/sparcv9/gen/
H A Dstrncpy.s101 cmp %g1, 3 ! dst offset of 3 or 7
103 cmp %g1, 2 ! dst halfword aligned ?
113 andn %o5, %o1, %g1 ! ~dword & 0x8080808080808080
115 andcc %g5, %g1, %g0 ! ((dword - 0x0101010101010101) & ~dword & 0x8080808080808080)
124 srlx %o1, 56, %g1 ! first byte
125 stb %g1, [%o3] ! store it
126 andcc %g1, 0xff, %g0 ! end of string ?
128 srlx %o1, 48, %g1 ! second byte
129 stb %g1, [%o3 + 1] ! store it
130 andcc %g1, 0xff, %g0 ! end of string ?
[all …]
H A Dstrlcpy.s93 cmp %g1, 3 ! dst offset of 3 or 7
95 cmp %g1, 2 ! dst halfword aligned ?
106 andn %i5, %l1, %g1 ! ~dword & 0x8080808080808080
108 andcc %l0, %g1, %g0 ! ((dword - 0x0101010101010101) & ~dword & 0x8080808080808080)
119 srlx %l1, 56, %g1 ! first byte
120 andcc %g1, 0xff, %g0 ! end of string ?
122 stb %g1, [%i2] ! store it
124 srlx %l1, 48, %g1 ! second byte
125 andcc %g1, 0xff, %g0 ! end of string ?
127 stb %g1, [%i2] ! store it
[all …]
H A Dstrcpy.s72 sub %g0, %o1, %g1 ! %g1<2:0> = # of unaligned bytes
80 andcc %g1, 2, %g0 ! need to copy half-word ?
94 andcc %g1, 4, %g0 ! need to copy word ?
135 andn %o5, %o1, %g1 ! ~dword & 0x8080808080808080
137 andcc %g4, %g1, %g0 ! ((dword - 0x0101010101010101) & ~dword & 0x8080808080808080)
187 andn %o5, %o1, %g1 ! ~x & 0x8080808080808080
189 andcc %g4, %g1, %g0 ! ((x - 0x0101010101010101) & ~x & 0x8080808080808080)
191 srlx %o1, 56, %g1 ! %g1<7:0> = first byte; word aligned now
192 stb %g1, [%o2 - 8] ! store first byte
193 srlx %o1, 24, %g1 ! %g1<31:0> = bytes 2, 3, 4, 5
[all …]
/titanic_50/usr/src/lib/libc/sparcv9/crt/
H A D__align_cpy_4.s68 mov %o0, %g1 ! 8-byte aligned.
74 st %o3, [%g1]
76 add %g1, 4, %g1
94 stx %o3, [%g1]
95 stx %o4, [%g1+8]
98 add %g1, 16, %g1
111 stx %o3, [%g1]
113 add %g1, 8, %g1
122 st %o3, [%g1]
149 st %o2, [%g1]
[all …]
/titanic_50/usr/src/uts/sun4v/ml/
H A Dtrap_table.s126 set trap, %g1 ;\
136 mov PTL1_BAD_TRAP, %g1 ;\
162 set trap, %g1 ;\
182 set (which), %g1 ;\
228 rdpr %tstate, %g1 ;\
229 btst TSTATE_PRIV, %g1 ;\
232 set trap, %g1 ;\
243 set dtrace_pid_probe, %g1 ;\
250 set dtrace_return_probe, %g1 ;\
332 mov 4, %g1 ;\
[all …]
H A Dmach_xc.s73 rdpr %tnpc, %g1
74 wrpr %g1, %tpc ! PC <- TNPC[TL]
75 add %g1, 4, %g1
76 wrpr %g1, %tnpc ! nPC <- TNPC[TL] + 4
101 mov %o1, %g1
120 rdpr %pstate, %g1
121 andn %g1, PSTATE_IE | PSTATE_AM, %g2
138 stxa %g1, [%g3 + TRAP_ENT_TSTATE]%asi /* tstate = pstate */
188 wrpr %g0, %g1, %pstate /* enable interrupts */
215 CPU_ADDR(%g1, %g4) ! load CPU struct addr
[all …]
H A Dmach_interrupt.s67 ! %g1 arg 1
81 CPU_ADDR(%g1,%g2)
82 add %g1, CPU_MCPU, %g2
451 set process_resumable_error, %g1
475 set rq_overflow, %g1
521 CPU_PADDR(%g1, %g4) ! %g1 = cpu struct paddr
524 ldxa [%g1 + %g4]ASI_MEM, %g4 ! %g4 = queue base PA
536 ldxa [%g4 + %g5]ASI_MEM, %g1
537 stxa %g1, [%g7 + %g5]ASI_MEM ! byte 0 - 7
539 ldxa [%g4 + %g5]ASI_MEM, %g1
[all …]
/titanic_50/usr/src/lib/libc/sparc/sys/
H A Dsyscall.s56 ldn [%fp + STACK_BIAS + MINFRAME + CLONGSIZE], %g1
58 stn %g1, [%sp + STACK_BIAS + MINFRAME] ! arg 6
60 ldn [%fp + STACK_BIAS + MINFRAME + 2*CLONGSIZE], %g1
62 stn %g1, [%sp + STACK_BIAS + MINFRAME + CLONGSIZE] ! arg 7
64 mov %i0, %g1 ! sysnum
82 mov %o0, %g1 /* sysnum */
101 ldn [%fp + STACK_BIAS + MINFRAME + 2*CLONGSIZE], %g1
103 stn %g1, [%sp + STACK_BIAS + MINFRAME] ! arg 6
105 ldn [%fp + STACK_BIAS + MINFRAME + 3*CLONGSIZE], %g1
106 stn %g1, [%sp + STACK_BIAS + MINFRAME + CLONGSIZE] ! arg7
[all …]
/titanic_50/usr/src/uts/sun4u/ml/
H A Dtrap_table.s125 set trap, %g1 ;\
157 set trap, %g1 ;\
177 set (which), %g1 ;\
199 set trap, %g1 ;\
235 rdpr %tstate, %g1 ;\
236 btst TSTATE_PRIV, %g1 ;\
239 set trap, %g1 ;\
250 set dtrace_pid_probe, %g1 ;\
257 set dtrace_return_probe, %g1 ;\
339 mov 4, %g1 ;\
[all …]
H A Dmach_interrupt.s90 mov MMU_PCONTEXT, %g1
91 ldxa [%g1]ASI_DMMU, %g1
92 srlx %g1, CTXREG_NEXT_SHIFT, %g3
96 btst %g4, %g1
99 xor %g3, %g1, %g3 ! user: clr N_pgsz0/1 bits
101 set DEMAP_ALL_TYPE, %g1
102 stxa %g0, [%g1]ASI_DTLB_DEMAP
103 stxa %g0, [%g1]ASI_ITLB_DEMAP
104 mov MMU_PCONTEXT, %g1
105 stxa %g3, [%g1]ASI_DMMU
[all …]
/titanic_50/usr/src/uts/sun4u/io/px/
H A Dpx_asm_4u.s79 movz %xcc, ASI_IOL, %g1 ! Big/little endian physical space
80 movnz %xcc, ASI_IO, %g1
81 mov %g1, %asi
86 ldxa [%o1]%asi, %g1
88 stx %g1, [%o2]
93 lduwa [%o1]%asi, %g1
95 stuw %g1, [%o2]
100 lduha [%o1]%asi, %g1
102 stuh %g1, [%o2]
105 lduba [%o1]%asi, %g1 ! 8-bit!
[all …]
/titanic_50/usr/src/uts/sfmmu/ml/
H A Dsfmmu_asm.s572 PANIC_IF_INTR_DISABLED_PSTR(%o0, sfmmu_di_l0, %g1)
610 sethi %hi(ksfmmup), %g1
611 ldx [%g1 + %lo(ksfmmup)], %g1
612 cmp %g1, %o0
616 sethi %hi(panicstr), %g1 ! if kernel as, panic
617 ldx [%g1 + %lo(panicstr)], %g1
618 tst %g1
631 PANIC_IF_INTR_ENABLED_PSTR(sfmmu_ei_l1, %g1)
634 mov %o3, %g1 ! save sfmmu pri/sh flag in %g1
655 sethi %hi(panicstr), %g1 ! test if panicstr is already set
[all …]
/titanic_50/usr/src/uts/common/io/nxge/
H A Dnxge_hcall.s281 mov %o2, %g1
285 stx %o1, [%g1]
306 mov %o2, %g1
310 stx %o1, [%g1]
320 mov %o2, %g1
324 stw %o1, [%g1]
342 mov %o1, %g1
346 stx %o1, [%g1]
355 mov %o1, %g1
359 stx %o1, [%g1]
[all …]
/titanic_50/usr/src/uts/sun4u/io/
H A Dpanther_asm.s175 UNPARK_SIBLING_CORE(%g1, %o3, %o4) ! 7 instructions
179 stxa %g1, [%g0]ASI_DCU
275 andn %o2, PSTATE_IE, %g1
276 wrpr %g0, %g1, %pstate ! disable interrupts
281 ldxa [%g0]ASI_DCU, %g1 ! save DCU in %g1
282 andn %g1, %o3, %g4
285 PARK_SIBLING_CORE(%g1, %o3, %o4) ! %g1 has DCU value
343 andn %o2, PSTATE_IE, %g1
344 wrpr %g0, %g1, %pstate ! disable interrupts
349 ldxa [%g0]ASI_DCU, %g1 ! save DCU in %g1
[all …]
/titanic_50/usr/src/uts/sun4u/io/pci/
H A Dpci_asm.s75 movz %xcc, ASI_IOL, %g1 ! Big/little endian physical space
76 movnz %xcc, ASI_IO, %g1
77 mov %g1, %asi
82 ldxa [%o1]%asi, %g1
84 stx %g1, [%o2]
89 lduwa [%o1]%asi, %g1
91 stuw %g1, [%o2]
96 lduha [%o1]%asi, %g1
98 stuh %g1, [%o2]
101 lduba [%o1]%asi, %g1 ! 8-bit!
[all …]
/titanic_50/usr/src/uts/sun4u/cpu/
H A Dopl_olympus_asm.s88 PANIC_IF_INTR_DISABLED_PSTR(%o5, opl_di_l3, %g1)
122 SFMMU_CPU_CNUM(%o1, %g1, %g2) ! %g1 = sfmmu cnum on this CPU
126 or %g1, %o4, %g1 ! %g1 = primary pgsz | cnum
134 or %g1, %o1, %g1 ! %g1 = nucleus pgsz | primary pgsz | cnum
135 stxa %g1, [%o4]ASI_DMMU ! wr new ctxum
163 set DEMAP_ALL_TYPE, %g1
164 stxa %g0, [%g1]ASI_DTLB_DEMAP
165 stxa %g0, [%g1]ASI_ITLB_DEMAP
193 srln %g1, MMU_PAGESHIFT, %g1
199 slln %g1, MMU_PAGESHIFT, %g1 /* g1 = vaddr */
[all …]
/titanic_50/usr/src/common/atomic/sparcv9/
H A Datomic.s213 xor %o4, 0x3, %g1 ! %g1 = byte offset, right-to-left
214 sll %g1, 3, %g1 ! %g1 = bit offset, right-to-left
216 sll %o3, %g1, %o3 ! %o3 = shifted to bit offset
217 sll %o1, %g1, %o1 ! %o1 = shifted to bit offset
233 srl %o5, %g1, %o0 ! %o0 = new value
285 xor %o4, 0x2, %g1 ! %g1 = byte offset, right-to-left
287 sll %g1, 3, %g1 ! %g1 = bit offset, right-to-left
290 sll %o1, %g1, %o1 ! %o1 = shifted to bit offset
307 srl %o5, %g1, %o0 ! %o0 = new value
454 xor %o4, 0x3, %g1 ! %g1 = byte offset, right-to-left
[all …]
/titanic_50/usr/src/common/atomic/sparc/
H A Datomic.s92 xor %o4, 0x3, %g1 ! %g1 = byte offset, right-to-left
93 sll %g1, 3, %g1 ! %g1 = bit offset, right-to-left
95 sll %o3, %g1, %o3 ! %o3 = shifted to bit offset
96 sll %o1, %g1, %o1 ! %o1 = shifted to bit offset
112 srl %o5, %g1, %o0 ! %o0 = new value
164 xor %o4, 0x2, %g1 ! %g1 = byte offset, right-to-left
166 sll %g1, 3, %g1 ! %g1 = bit offset, right-to-left
169 sll %o1, %g1, %o1 ! %o1 = shifted to bit offset
186 srl %o5, %g1, %o0 ! %o0 = new value
329 xor %o4, 0x3, %g1 ! %g1 = byte offset, right-to-left
[all …]
/titanic_50/usr/src/uts/sun4v/cpu/
H A Dcommon_asm.s120 mov 1, %g1
121 sllx %g1, TICKINT_DIS_SHFT, %o0
177 RD_TICKCMPR(%g1,%o0,%o1,__LINE__)
179 srlx %g1, TICKINT_DIS_SHFT, %o0
330 GET_HRTIME(%g1,%o0,%o1,%o2,%o3,%o4,%o5,%g2,__LINE__)
331 ! %g1 = hrtime
333 mov %g1, %o0
337 GET_NATIVE_TIME(%g1,%o2,%o3,__LINE__) ! %g1 = native time
339 mov %g1, %o0
344 GET_NATIVE_TIME(%g1,%o2,%o3,__LINE__) ! %g1 = native time
[all …]

123456789