Home
last modified time | relevance | path

Searched refs:tstate (Results 1 – 25 of 32) sorted by relevance

12

/arch/sparc/include/uapi/asm/
Dpsrcompat.h28 static inline unsigned int tstate_to_psr(unsigned long tstate) in tstate_to_psr() argument
30 return ((tstate & TSTATE_CWP) | in tstate_to_psr()
32 ((tstate & TSTATE_ICC) >> 12) | in tstate_to_psr()
33 ((tstate & TSTATE_XCC) >> 20) | in tstate_to_psr()
34 ((tstate & TSTATE_SYSCALL) ? PSR_SYSCALL : 0) | in tstate_to_psr()
40 unsigned long tstate = ((unsigned long)(psr & PSR_ICC)) << 12; in psr_to_tstate_icc() local
42 tstate |= ((unsigned long)(psr & PSR_XCC)) << 20; in psr_to_tstate_icc()
43 return tstate; in psr_to_tstate_icc()
/arch/sparc/include/asm/
Dprocessor_64.h100 regs->tstate = (regs->tstate & (TSTATE_CWP)) | (TSTATE_INITIAL_MM|TSTATE_IE) | (__asi << 24UL); \
136 regs->tstate &= ~TSTATE_PEF; \
144 …regs->tstate = (regs->tstate & (TSTATE_CWP))|(TSTATE_INITIAL_MM|TSTATE_IE|TSTATE_AM) | (__asi << 2…
180 regs->tstate &= ~TSTATE_PEF; \
Dptrace.h21 return (regs->tstate & TSTATE_SYSCALL); in pt_regs_is_syscall()
26 return (regs->tstate &= ~TSTATE_SYSCALL); in pt_regs_clear_syscall()
41 unsigned long tstate; member
64 #define user_mode(regs) (!((regs)->tstate & TSTATE_PRIV))
73 return !(regs->tstate & (TSTATE_XCARRY | TSTATE_ICARRY)); in is_syscall_success()
Dsyscall.h56 return (regs->tstate & (TSTATE_XCARRY | TSTATE_ICARRY)) ? true : false; in syscall_has_error()
60 regs->tstate |= (TSTATE_XCARRY | TSTATE_ICARRY); in syscall_set_error()
64 regs->tstate &= ~(TSTATE_XCARRY | TSTATE_ICARRY); in syscall_clear_error()
Dmman.h26 regs->tstate |= TSTATE_MCDE; in ipi_set_tstate_mcde()
38 regs->tstate |= TSTATE_MCDE; in sparc_calc_vm_prot_bits()
Dperf_event.h21 (regs)->tstate = (_pstate << 8) | \
Dsigcontext.h77 unsigned long tstate; member
Dmmu_context_64.h183 regs->tstate |= TSTATE_MCDE; in finish_arch_post_lock_switch()
/arch/sparc/kernel/
Dptrace_64.c264 membuf_write(&to, &regs->tstate, 3 * sizeof(u64)); in genregs64_get()
299 unsigned long tstate; in genregs64_set() local
303 &tstate, in genregs64_set()
310 tstate &= (TSTATE_ICC | TSTATE_XCC | TSTATE_SYSCALL); in genregs64_set()
311 regs->tstate &= ~(TSTATE_ICC | TSTATE_XCC | TSTATE_SYSCALL); in genregs64_set()
312 regs->tstate |= tstate; in genregs64_set()
454 membuf_write(&to, &regs->tstate, 3 * sizeof(u64)); in getregs64_get()
465 unsigned long tstate; in setregs64_set() local
483 &tstate, in setregs64_set()
491 tstate &= (TSTATE_ICC | TSTATE_XCC | TSTATE_SYSCALL); in setregs64_set()
[all …]
Dsignal_64.c47 unsigned long pc, npc, tstate; in sparc64_set_context() local
81 err |= __get_user(tstate, &((*grp)[MC_TSTATE])); in sparc64_set_context()
82 regs->tstate &= ~(TSTATE_ASI | TSTATE_ICC | TSTATE_XCC); in sparc64_set_context()
83 regs->tstate |= (tstate & (TSTATE_ASI | TSTATE_ICC | TSTATE_XCC)); in sparc64_set_context()
128 regs->tstate &= ~TSTATE_PEF; in sparc64_set_context()
180 err |= __put_user(regs->tstate, &((*grp)[MC_TSTATE])); in sparc64_get_context()
257 unsigned long tpc, tnpc, tstate, ufp; in do_rt_sigreturn() local
291 err |= __get_user(tstate, &sf->regs.tstate); in do_rt_sigreturn()
295 regs->tstate &= ~(TSTATE_ASI | TSTATE_ICC | TSTATE_XCC); in do_rt_sigreturn()
296 regs->tstate |= (tstate & (TSTATE_ASI | TSTATE_ICC | TSTATE_XCC)); in do_rt_sigreturn()
[all …]
Dkprobes.c98 kcb->kprobe_orig_tstate_pil = (regs->tstate & TSTATE_PIL); in set_current_kprobe()
104 regs->tstate |= TSTATE_PIL; in prepare_singlestep()
134 regs->tstate = ((regs->tstate & ~TSTATE_PIL) | in kprobe_handler()
289 regs->tstate = ((regs->tstate & ~TSTATE_PIL) | in resume_execution()
338 regs->tstate = ((regs->tstate & ~TSTATE_PIL) | in kprobe_fault_handler()
Dunaligned_64.c91 return (unsigned char)(regs->tstate >> 24); /* %asi */ in decode_asi()
129 if (regs->tstate & TSTATE_PRIV) { in fetch_reg()
154 if (regs->tstate & TSTATE_PRIV) { in fetch_reg_addr()
172 int from_kernel = (regs->tstate & TSTATE_PRIV) != 0; in compute_effective_address()
291 regs->tstate &= ~TSTATE_ASI; in kernel_mna_trap_fault()
292 regs->tstate |= (ASI_AIUS << 24UL); in kernel_mna_trap_fault()
398 int from_kernel = (regs->tstate & TSTATE_PRIV) != 0; in handle_popc()
573 int from_kernel = (regs->tstate & TSTATE_PRIV) != 0; in handle_ld_nf()
600 unsigned long tstate = regs->tstate; in handle_lddfmna() local
607 if (tstate & TSTATE_PRIV) in handle_lddfmna()
[all …]
Dprocess_64.c141 if ((regs->tstate & TSTATE_PRIV) || !(test_thread_flag(TIF_32BIT))) { in show_regwindow()
147 if (!(regs->tstate & TSTATE_PRIV)) { in show_regwindow()
169 if (regs->tstate & TSTATE_PRIV) in show_regwindow()
177 printk("TSTATE: %016lx TPC: %016lx TNPC: %016lx Y: %08x %s\n", regs->tstate, in show_regs()
209 rp->tstate = regs->tstate; in __global_reg_self()
214 if (regs->tstate & TSTATE_PRIV) { in __global_reg_self()
282 gp->tstate, gp->tpc, gp->tnpc, in arch_trigger_cpumask_backtrace()
286 if (gp->tstate & TSTATE_PRIV) { in arch_trigger_cpumask_backtrace()
600 (current_pt_regs()->tstate + 1) & TSTATE_CWP; in copy_thread()
615 (regs->tstate + 1) & TSTATE_CWP; in copy_thread()
Dutrap.S21 rdpr %tstate, %l6
24 wrpr %l6, %l7, %tstate
Detrap_64.S35 rdpr %tstate, %g1
182 wrpr %l7, (TSTATE_PRIV | TSTATE_IE), %tstate
224 rdpr %tstate, %g3
234 rdpr %tstate, %g3
249 rdpr %tstate, %g3
259 rdpr %tstate, %g3
278 rdpr %tstate, %g1
Dkgdb_64.c39 gdb_regs[GDB_STATE] = regs->tstate; in pt_regs_to_gdb_regs()
99 if (regs->tstate != gdb_regs[GDB_STATE]) { in gdb_regs_to_pt_regs()
100 unsigned long cwp = regs->tstate & TSTATE_CWP; in gdb_regs_to_pt_regs()
102 regs->tstate = (gdb_regs[GDB_STATE] & ~TSTATE_CWP) | cwp; in gdb_regs_to_pt_regs()
Dsignal32.c141 regs->tstate &= ~TSTATE_ASI; in do_sigreturn32()
142 regs->tstate |= ((asi & 0xffUL) << 24UL); in do_sigreturn32()
147 regs->tstate &= ~(TSTATE_ICC|TSTATE_XCC); in do_sigreturn32()
148 regs->tstate |= psr_to_tstate_icc(psr); in do_sigreturn32()
229 regs->tstate &= ~TSTATE_ASI; in do_rt_sigreturn32()
230 regs->tstate |= ((asi & 0xffUL) << 24UL); in do_rt_sigreturn32()
235 regs->tstate &= ~(TSTATE_ICC|TSTATE_XCC); in do_rt_sigreturn32()
236 regs->tstate |= psr_to_tstate_icc(psr); in do_rt_sigreturn32()
395 psr = tstate_to_psr(regs->tstate); in setup_frame32()
406 err |= __put_user((regs->tstate & TSTATE_ASI) >> 24UL, in setup_frame32()
[all …]
Dtraps_64.c61 unsigned long tstate; member
82 p->trapstack[i].tstate, p->trapstack[i].tpc, in dump_tl1_traplog()
102 if (regs->tstate & TSTATE_PRIV) { in bad_trap()
195 if (regs->tstate & TSTATE_PRIV) { in spitfire_insn_access_exception()
228 if (regs->tstate & TSTATE_PRIV) { in sun4v_insn_access_exception()
274 asi = (regs->tstate >> 24); /* saved %asi */ in is_no_fault_exception()
298 if (regs->tstate & TSTATE_PRIV) { in spitfire_data_access_exception()
347 if (regs->tstate & TSTATE_PRIV) { in sun4v_data_access_exception()
552 if (regs->tstate & TSTATE_PRIV) { in spitfire_ue_log()
1180 regs->tpc, regs->tnpc, regs->u_regs[UREG_I7], regs->tstate); in cheetah_log_errors()
[all …]
Dwinfixup.S26 rdpr %tstate, %g1
91 rdpr %tstate, %g1
114 rdpr %tstate, %g1
141 rdpr %tstate, %g1
Dvisemul.c160 if (regs->tstate & TSTATE_PRIV) { in fetch_reg()
182 BUG_ON(regs->tstate & TSTATE_PRIV); in __fetch_reg_addr_user()
199 BUG_ON(regs->tstate & TSTATE_PRIV); in __fetch_reg_addr_kern()
359 unsigned long ccr, tstate; in edge() local
366 tstate = regs->tstate & ~(TSTATE_XCC | TSTATE_ICC); in edge()
367 regs->tstate = tstate | (ccr << 32UL); in edge()
809 BUG_ON(regs->tstate & TSTATE_PRIV); in vis_emul()
Dstacktrace.c46 if (!(regs->tstate & TSTATE_PRIV)) in __save_stack_trace()
Dfpu_traps.S7 rdpr %tstate, %g5
189 rdpr %tstate, %g3
191 wrpr %g3, %tstate
216 rdpr %tstate, %g3
Dsigutil_64.c46 regs->tstate &= ~TSTATE_PEF; in restore_fpu_state()
/arch/sparc/mm/
Dfault_64.c187 if (regs->tstate & TSTATE_PRIV) { in get_fault_insn()
202 if ((!insn) && (regs->tstate & TSTATE_PRIV)) in do_kernel_fault()
213 asi = (regs->tstate >> 24); in do_kernel_fault()
231 if (regs->tstate & TSTATE_PRIV) { in do_kernel_fault()
288 if (!(regs->tstate & TSTATE_PRIV)) { in do_sparc64_fault()
298 if (regs->tstate & TSTATE_PRIV) { in do_sparc64_fault()
322 if ((regs->tstate & TSTATE_PRIV) && in do_sparc64_fault()
379 asi = (regs->tstate >> 24); in do_sparc64_fault()
401 WARN_ON(regs->tstate & TSTATE_PRIV); in do_sparc64_fault()
496 if (!(regs->tstate & TSTATE_PRIV)) { in do_sparc64_fault()
[all …]
/arch/sparc/math-emu/
Dmath_64.c170 unsigned long tstate = regs->tstate; in do_mathemu() local
187 if (tstate & TSTATE_PRIV) in do_mathemu()
294 XR = regs->tstate >> 32; in do_mathemu()

12