/arch/sparc/include/uapi/asm/ |
D | psrcompat.h | 28 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/ |
D | processor_64.h | 100 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; \
|
D | ptrace.h | 21 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()
|
D | syscall.h | 56 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()
|
D | mman.h | 26 regs->tstate |= TSTATE_MCDE; in ipi_set_tstate_mcde() 38 regs->tstate |= TSTATE_MCDE; in sparc_calc_vm_prot_bits()
|
D | perf_event.h | 21 (regs)->tstate = (_pstate << 8) | \
|
D | sigcontext.h | 77 unsigned long tstate; member
|
D | mmu_context_64.h | 183 regs->tstate |= TSTATE_MCDE; in finish_arch_post_lock_switch()
|
/arch/sparc/kernel/ |
D | ptrace_64.c | 264 membuf_write(&to, ®s->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, ®s->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 …]
|
D | signal_64.c | 47 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 …]
|
D | kprobes.c | 98 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()
|
D | unaligned_64.c | 91 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 …]
|
D | process_64.c | 141 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()
|
D | utrap.S | 21 rdpr %tstate, %l6 24 wrpr %l6, %l7, %tstate
|
D | etrap_64.S | 35 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
|
D | kgdb_64.c | 39 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()
|
D | signal32.c | 141 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 …]
|
D | traps_64.c | 61 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 …]
|
D | winfixup.S | 26 rdpr %tstate, %g1 91 rdpr %tstate, %g1 114 rdpr %tstate, %g1 141 rdpr %tstate, %g1
|
D | visemul.c | 160 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()
|
D | stacktrace.c | 46 if (!(regs->tstate & TSTATE_PRIV)) in __save_stack_trace()
|
D | fpu_traps.S | 7 rdpr %tstate, %g5 189 rdpr %tstate, %g3 191 wrpr %g3, %tstate 216 rdpr %tstate, %g3
|
D | sigutil_64.c | 46 regs->tstate &= ~TSTATE_PEF; in restore_fpu_state()
|
/arch/sparc/mm/ |
D | fault_64.c | 187 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/ |
D | math_64.c | 170 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()
|