Home
last modified time | relevance | path

Searched refs:ex1 (Results 1 – 9 of 9) sorted by relevance

/arch/tile/include/asm/
Dprocessor.h322 #define EX1_PL(ex1) \ argument
323 (((ex1) >> SPR_EX_CONTEXT_1_1__PL_SHIFT) & SPR_EX_CONTEXT_1_1__PL_RMASK)
324 #define EX1_ICS(ex1) \ argument
325 (((ex1) >> SPR_EX_CONTEXT_1_1__ICS_SHIFT) & SPR_EX_CONTEXT_1_1__ICS_RMASK)
Dptrace.h66 pt_reg_t ex1; /* stored in EX_CONTEXT_K_1 (PL and ICS bit) */ member
107 #define user_mode(regs) (EX1_PL((regs)->ex1) == USER_PL)
/arch/tile/kernel/
Dptrace.c118 copyregs.ex1 = in arch_ptrace()
119 PL_ICS_EX1(USER_PL, EX1_ICS(copyregs.ex1)); in arch_ptrace()
Dstack.c99 if (EX1_PL(p->ex1) == KERNEL_PL && in valid_fault_handler()
105 } else if (EX1_PL(p->ex1) == USER_PL && in valid_fault_handler()
112 p->pc, p->sp, p->ex1); in valid_fault_handler()
203 if (EX1_PL(regs->ex1) == KERNEL_PL && regs->sp >= ksp0) { in validate_stack()
Dsignal.c73 regs->ex1 = PL_ICS_EX1(USER_PL, EX1_ICS(regs->ex1)); in restore_sigcontext()
218 regs->ex1 = PL_ICS_EX1(USER_PL, 1); /* set crit sec in handler */ in setup_rt_frame()
Dprocess.c189 if (sp == 0 && regs->ex1 == PL_ICS_EX1(KERNEL_PL, 0)) in copy_thread()
694 regs.ex1 = PL_ICS_EX1(KERNEL_PL, 0); /* run at kernel PL, no ICS */ in kernel_thread()
746 regs->pc, regs->ex1, regs->faultnum); in show_regs()
Dcompat_signal.c410 regs->ex1 = PL_ICS_EX1(USER_PL, 1); /* set crit sec in handler */ in compat_setup_rt_frame()
Dsingle_step.c520 regs->ex1 = ex0_1; in single_step_once()
/arch/tile/mm/
Dfault.c281 is_kernel_mode = (EX1_PL(regs->ex1) != USER_PL); in handle_page_fault()
669 regs->ex1 = PL_ICS_EX1(KERNEL_PL, 0); in do_page_fault_ics()
751 if (EX1_PL(regs->ex1) != USER_PL) { in do_page_fault()