Home
last modified time | relevance | path

Searched defs:regs (Results 1 – 25 of 889) sorted by relevance

12345678910>>...36

/arch/arm/include/asm/
Dptrace.h20 #define user_mode(regs) \ argument
24 #define thumb_mode(regs) \ argument
27 #define thumb_mode(regs) (0) argument
31 #define isa_mode(regs) \ argument
35 #define isa_mode(regs) 1 /* Thumb */ argument
38 #define processor_mode(regs) \ argument
41 #define interrupts_enabled(regs) \ argument
44 #define fast_interrupts_enabled(regs) \ argument
50 static inline int valid_user_regs(struct pt_regs *regs) in valid_user_regs()
80 static inline long regs_return_value(struct pt_regs *regs) in regs_return_value()
[all …]
/arch/powerpc/kernel/
Dtraps.c117 static unsigned __kprobes long oops_begin(struct pt_regs *regs) in oops_begin()
145 static void __kprobes oops_end(unsigned long flags, struct pt_regs *regs, in oops_end()
197 static int __kprobes __die(const char *str, struct pt_regs *regs, long err) in __die()
223 void die(const char *str, struct pt_regs *regs, long err) in die()
233 struct pt_regs *regs, siginfo_t *info) in user_single_step_siginfo()
241 void _exception(int signr, struct pt_regs *regs, int code, unsigned long addr) in _exception()
272 void system_reset_exception(struct pt_regs *regs) in system_reset_exception()
294 long machine_check_early(struct pt_regs *regs) in machine_check_early()
305 long hmi_exception_realmode(struct pt_regs *regs) in hmi_exception_realmode()
327 static inline int check_io_access(struct pt_regs *regs) in check_io_access()
[all …]
/arch/unicore32/include/asm/
Dptrace.h19 #define user_mode(regs) \ argument
22 #define processor_mode(regs) \ argument
25 #define interrupts_enabled(regs) \ argument
28 #define fast_interrupts_enabled(regs) \ argument
34 static inline int valid_user_regs(struct pt_regs *regs) in valid_user_regs()
56 #define instruction_pointer(regs) ((regs)->UCreg_pc) argument
57 #define user_stack_pointer(regs) ((regs)->UCreg_sp) argument
58 #define profile_pc(regs) instruction_pointer(regs) argument
/arch/powerpc/include/asm/
Dptrace.h78 #define GET_IP(regs) ((regs)->nip) argument
79 #define GET_USP(regs) ((regs)->gpr[1]) argument
80 #define GET_FP(regs) (0) argument
81 #define SET_FP(regs, val) argument
90 #define kernel_stack_pointer(regs) ((regs)->gpr[1]) argument
91 static inline int is_syscall_success(struct pt_regs *regs) in is_syscall_success()
96 static inline long regs_return_value(struct pt_regs *regs) in regs_return_value()
105 #define user_mode(regs) ((((regs)->msr) >> MSR_PR_LG) & 0x1) argument
107 #define user_mode(regs) (((regs)->msr & MSR_PR) != 0) argument
130 #define FULL_REGS(regs) (((regs)->trap & 1) == 0) argument
[all …]
/arch/sh/include/asm/
Dfpu.h9 static inline void release_fpu(struct pt_regs *regs) in release_fpu()
14 static inline void grab_fpu(struct pt_regs *regs) in grab_fpu()
26 #define release_fpu(regs) do { } while (0) argument
27 #define grab_fpu(regs) do { } while (0) argument
28 #define fpu_state_restore(regs) do { } while (0) argument
29 #define __fpu_state_restore(regs) do { } while (0) argument
42 static inline void __unlazy_fpu(struct task_struct *tsk, struct pt_regs *regs) in __unlazy_fpu()
52 static inline void unlazy_fpu(struct task_struct *tsk, struct pt_regs *regs) in unlazy_fpu()
59 static inline void clear_fpu(struct task_struct *tsk, struct pt_regs *regs) in clear_fpu()
/arch/score/kernel/
Dtraps.c118 void show_regs(struct pt_regs *regs) in show_regs()
143 static void show_registers(struct pt_regs *regs) in show_registers()
154 void __die(const char *str, struct pt_regs *regs, const char *file, in __die()
166 void __die_if_kernel(const char *str, struct pt_regs *regs, in __die_if_kernel()
173 asmlinkage void do_adelinsn(struct pt_regs *regs) in do_adelinsn()
181 asmlinkage void do_adedata(struct pt_regs *regs) in do_adedata()
195 asmlinkage void do_pel(struct pt_regs *regs) in do_pel()
201 asmlinkage void do_cee(struct pt_regs *regs) in do_cee()
207 asmlinkage void do_cpe(struct pt_regs *regs) in do_cpe()
213 asmlinkage void do_be(struct pt_regs *regs) in do_be()
[all …]
/arch/sparc/include/asm/
Dsyscall.h19 struct pt_regs *regs) in syscall_get_nr()
27 struct pt_regs *regs) in syscall_rollback()
39 static inline bool syscall_has_error(struct pt_regs *regs) in syscall_has_error()
43 static inline void syscall_set_error(struct pt_regs *regs) in syscall_set_error()
47 static inline void syscall_clear_error(struct pt_regs *regs) in syscall_clear_error()
52 static inline bool syscall_has_error(struct pt_regs *regs) in syscall_has_error()
56 static inline void syscall_set_error(struct pt_regs *regs) in syscall_set_error()
60 static inline void syscall_clear_error(struct pt_regs *regs) in syscall_clear_error()
67 struct pt_regs *regs) in syscall_get_error()
75 struct pt_regs *regs) in syscall_get_return_value()
[all …]
Dptrace.h12 static inline int pt_regs_trap_type(struct pt_regs *regs) in pt_regs_trap_type()
17 static inline bool pt_regs_is_syscall(struct pt_regs *regs) in pt_regs_is_syscall()
22 static inline bool pt_regs_clear_syscall(struct pt_regs *regs) in pt_regs_clear_syscall()
62 #define user_mode(regs) (!((regs)->tstate & TSTATE_PRIV)) argument
63 #define instruction_pointer(regs) ((regs)->tpc) argument
64 #define instruction_pointer_set(regs, val) ((regs)->tpc = (val)) argument
65 #define user_stack_pointer(regs) ((regs)->u_regs[UREG_FP]) argument
66 static inline int is_syscall_success(struct pt_regs *regs) in is_syscall_success()
71 static inline long regs_return_value(struct pt_regs *regs) in regs_return_value()
78 #define profile_pc(regs) instruction_pointer(regs) argument
[all …]
/arch/microblaze/include/asm/
Dptrace.h14 #define kernel_mode(regs) ((regs)->pt_mode) argument
15 #define user_mode(regs) (!kernel_mode(regs)) argument
17 #define instruction_pointer(regs) ((regs)->pc) argument
18 #define profile_pc(regs) instruction_pointer(regs) argument
19 #define user_stack_pointer(regs) ((regs)->r1) argument
21 static inline long regs_return_value(struct pt_regs *regs) in regs_return_value()
Dsyscall.h11 struct pt_regs *regs) in syscall_get_nr()
17 struct pt_regs *regs) in syscall_rollback()
23 struct pt_regs *regs) in syscall_get_error()
29 struct pt_regs *regs) in syscall_get_return_value()
35 struct pt_regs *regs, in syscall_set_return_value()
44 static inline microblaze_reg_t microblaze_get_syscall_arg(struct pt_regs *regs, in microblaze_get_syscall_arg()
60 static inline void microblaze_set_syscall_arg(struct pt_regs *regs, in microblaze_set_syscall_arg()
83 struct pt_regs *regs, in syscall_get_arguments()
92 struct pt_regs *regs, in syscall_set_arguments()
/arch/mips/include/asm/
Dptrace.h35 unsigned long regs[32]; member
54 static inline unsigned long kernel_stack_pointer(struct pt_regs *regs) in kernel_stack_pointer()
64 static inline void instruction_pointer_set(struct pt_regs *regs, in instruction_pointer_set()
83 static inline unsigned long regs_get_register(struct pt_regs *regs, in regs_get_register()
100 static inline int regs_within_kernel_stack(struct pt_regs *regs, in regs_within_kernel_stack()
116 static inline unsigned long regs_get_kernel_stack_nth(struct pt_regs *regs, in regs_get_kernel_stack_nth()
146 #define user_mode(regs) (((regs)->cp0_status & KU_MASK) == KU_USER) argument
148 static inline int is_syscall_success(struct pt_regs *regs) in is_syscall_success()
153 static inline long regs_return_value(struct pt_regs *regs) in regs_return_value()
161 #define instruction_pointer(regs) ((regs)->cp0_epc) argument
[all …]
Dbranch.h33 static inline int mm_isBranchInstr(struct pt_regs *regs, in mm_isBranchInstr()
42 static inline int delay_slot(struct pt_regs *regs) in delay_slot()
47 static inline void clear_delay_slot(struct pt_regs *regs) in clear_delay_slot()
52 static inline void set_delay_slot(struct pt_regs *regs) in set_delay_slot()
57 static inline unsigned long exception_epc(struct pt_regs *regs) in exception_epc()
70 static inline int compute_return_epc(struct pt_regs *regs) in compute_return_epc()
85 static inline int MIPS16e_compute_return_epc(struct pt_regs *regs, in MIPS16e_compute_return_epc()
/arch/x86/kernel/
Dtraps.c86 static inline void conditional_sti(struct pt_regs *regs) in conditional_sti()
92 static inline void preempt_conditional_sti(struct pt_regs *regs) in preempt_conditional_sti()
99 static inline void conditional_cli(struct pt_regs *regs) in conditional_cli()
105 static inline void preempt_conditional_cli(struct pt_regs *regs) in preempt_conditional_cli()
118 void ist_enter(struct pt_regs *regs) in ist_enter()
138 void ist_exit(struct pt_regs *regs) in ist_exit()
159 void ist_begin_non_atomic(struct pt_regs *regs) in ist_begin_non_atomic()
186 struct pt_regs *regs, long error_code) in do_trap_no_signal()
213 static siginfo_t *fill_trap_info(struct pt_regs *regs, int signr, int trapnr, in fill_trap_info()
245 do_trap(int trapnr, int signr, char *str, struct pt_regs *regs, in do_trap()
[all …]
/arch/s390/kernel/
Dtraps.c27 static inline void __user *get_trap_ip(struct pt_regs *regs) in get_trap_ip()
39 static inline void report_user_fault(struct pt_regs *regs, int signr) in report_user_fault()
59 void do_report_trap(struct pt_regs *regs, int si_signo, int si_code, char *str) in do_report_trap()
86 static void do_trap(struct pt_regs *regs, int si_signo, int si_code, char *str) in do_trap()
95 void do_per_trap(struct pt_regs *regs) in do_per_trap()
112 void default_trap_handler(struct pt_regs *regs) in default_trap_handler()
154 static inline void do_fp_trap(struct pt_regs *regs, __u32 fpc) in do_fp_trap()
174 void translation_exception(struct pt_regs *regs) in translation_exception()
180 void illegal_op(struct pt_regs *regs) in illegal_op()
227 void vector_exception(struct pt_regs *regs) in vector_exception()
[all …]
/arch/x86/entry/
Dcommon.c36 static struct thread_info *pt_regs_to_thread_info(struct pt_regs *regs) in pt_regs_to_thread_info()
52 static void do_audit_syscall_entry(struct pt_regs *regs, u32 arch) in do_audit_syscall_entry()
79 unsigned long syscall_trace_enter_phase1(struct pt_regs *regs, u32 arch) in syscall_trace_enter_phase1()
167 long syscall_trace_enter_phase2(struct pt_regs *regs, u32 arch, in syscall_trace_enter_phase2()
213 long syscall_trace_enter(struct pt_regs *regs) in syscall_trace_enter()
228 static void exit_to_usermode_loop(struct pt_regs *regs, u32 cached_flags) in exit_to_usermode_loop()
272 __visible inline void prepare_exit_to_usermode(struct pt_regs *regs) in prepare_exit_to_usermode()
307 static void syscall_slow_exit_work(struct pt_regs *regs, u32 cached_flags) in syscall_slow_exit_work()
333 __visible inline void syscall_return_slowpath(struct pt_regs *regs) in syscall_return_slowpath()
369 __always_inline void do_syscall_32_irqs_on(struct pt_regs *regs) in do_syscall_32_irqs_on()
[all …]
/arch/hexagon/kernel/
Dtraps.c157 struct pt_regs *regs = (struct pt_regs *) (((void *)fp) in do_show_stack() local
198 int die(const char *str, struct pt_regs *regs, long err) in die()
239 int die_if_kernel(char *str, struct pt_regs *regs, long err) in die_if_kernel()
250 static void misaligned_instruction(struct pt_regs *regs) in misaligned_instruction()
261 static void misaligned_data_load(struct pt_regs *regs) in misaligned_data_load()
267 static void misaligned_data_store(struct pt_regs *regs) in misaligned_data_store()
273 static void illegal_instruction(struct pt_regs *regs) in illegal_instruction()
283 static void precise_bus_error(struct pt_regs *regs) in precise_bus_error()
294 static void cache_error(struct pt_regs *regs) in cache_error()
302 void do_genex(struct pt_regs *regs) in do_genex()
[all …]
/arch/x86/include/asm/
Dkmemcheck.h17 static inline bool kmemcheck_active(struct pt_regs *regs) in kmemcheck_active()
22 static inline void kmemcheck_show(struct pt_regs *regs) in kmemcheck_show()
26 static inline void kmemcheck_hide(struct pt_regs *regs) in kmemcheck_hide()
30 static inline bool kmemcheck_fault(struct pt_regs *regs, in kmemcheck_fault()
36 static inline bool kmemcheck_trap(struct pt_regs *regs) in kmemcheck_trap()
/arch/ia64/include/asm/
Dptrace.h52 # define instruction_pointer(regs) ((regs)->cr_iip + ia64_psr(regs)->ri) argument
54 static inline unsigned long user_stack_pointer(struct pt_regs *regs) in user_stack_pointer()
59 static inline int is_syscall_success(struct pt_regs *regs) in is_syscall_success()
64 static inline long regs_return_value(struct pt_regs *regs) in regs_return_value()
75 #define profile_pc(regs) \ argument
83 # define ia64_psr(regs) ((struct ia64_psr *) &(regs)->cr_ipsr) argument
84 # define user_mode(regs) (((struct ia64_psr *) &(regs)->cr_ipsr)->cpl != 0) argument
85 # define user_stack(task,regs) ((long) regs - (long) task == IA64_STK_OFFSET - sizeof(*regs)) argument
86 # define fsys_mode(task,regs) \ argument
/arch/m32r/kernel/
Dalign.c10 static int get_reg(struct pt_regs *regs, int nr) in get_reg()
26 static void set_reg(struct pt_regs *regs, int nr, int val) in set_reg()
81 static int emu_addi(unsigned short insn, struct pt_regs *regs) in emu_addi()
94 static int emu_ldi(unsigned short insn, struct pt_regs *regs) in emu_ldi()
103 static int emu_add(unsigned short insn, struct pt_regs *regs) in emu_add()
116 static int emu_addx(unsigned short insn, struct pt_regs *regs) in emu_addx()
136 static int emu_and(unsigned short insn, struct pt_regs *regs) in emu_and()
148 static int emu_cmp(unsigned short insn, struct pt_regs *regs) in emu_cmp()
158 static int emu_cmpeq(unsigned short insn, struct pt_regs *regs) in emu_cmpeq()
168 static int emu_cmpu(unsigned short insn, struct pt_regs *regs) in emu_cmpu()
[all …]
/arch/avr32/include/asm/
Dptrace.h21 #define user_mode(regs) (((regs)->sr & MODE_MASK) == MODE_USER) argument
22 #define instruction_pointer(regs) ((regs)->pc) argument
23 #define profile_pc(regs) instruction_pointer(regs) argument
24 #define user_stack_pointer(regs) ((regs)->sp) argument
26 static __inline__ int valid_user_regs(struct pt_regs *regs) in valid_user_regs()
/arch/frv/include/asm/
Dptrace.h17 #define in_syscall(regs) (((regs)->tbr & TBR_TT) == TBR_TT_TRAP0) argument
28 #define user_mode(regs) (!((regs)->psr & PSR_S)) argument
29 #define instruction_pointer(regs) ((regs)->pc) argument
30 #define user_stack_pointer(regs) ((regs)->sp) argument
34 #define profile_pc(regs) ((regs)->pc) argument
/arch/parisc/include/asm/
Dptrace.h16 #define user_mode(regs) (((regs)->iaoq[0] & 3) ? 1 : 0) argument
17 #define user_space(regs) (((regs)->iasq[1] != 0) ? 1 : 0) argument
18 #define instruction_pointer(regs) ((regs)->iaoq[0] & ~3) argument
19 #define user_stack_pointer(regs) ((regs)->gr[30]) argument
22 static inline unsigned long regs_return_value(struct pt_regs *regs) in regs_return_value()
/arch/mips/kernel/
Dmips-r2-to-r6-emul.c76 static inline int mipsr6_emul(struct pt_regs *regs, u32 ir) in mipsr6_emul()
197 static int movf_func(struct pt_regs *regs, u32 ir) in movf_func()
220 static int movt_func(struct pt_regs *regs, u32 ir) in movt_func()
245 static int jr_func(struct pt_regs *regs, u32 ir) in jr_func()
302 static int movz_func(struct pt_regs *regs, u32 ir) in movz_func()
318 static int movn_func(struct pt_regs *regs, u32 ir) in movn_func()
334 static int mfhi_func(struct pt_regs *regs, u32 ir) in mfhi_func()
351 static int mthi_func(struct pt_regs *regs, u32 ir) in mthi_func()
367 static int mflo_func(struct pt_regs *regs, u32 ir) in mflo_func()
384 static int mtlo_func(struct pt_regs *regs, u32 ir) in mtlo_func()
[all …]
/arch/nios2/include/asm/
Dsyscall.h23 static inline int syscall_get_nr(struct task_struct *task, struct pt_regs *regs) in syscall_get_nr()
29 struct pt_regs *regs) in syscall_rollback()
36 struct pt_regs *regs) in syscall_get_error()
42 struct pt_regs *regs) in syscall_get_return_value()
48 struct pt_regs *regs, int error, long val) in syscall_set_return_value()
61 struct pt_regs *regs, unsigned int i, unsigned int n, in syscall_get_arguments()
100 struct pt_regs *regs, unsigned int i, unsigned int n, in syscall_set_arguments()
/arch/c6x/include/asm/
Dsyscall.h18 struct pt_regs *regs) in syscall_get_nr()
24 struct pt_regs *regs) in syscall_rollback()
30 struct pt_regs *regs) in syscall_get_error()
36 struct pt_regs *regs) in syscall_get_return_value()
42 struct pt_regs *regs, in syscall_set_return_value()
49 struct pt_regs *regs, unsigned int i, in syscall_get_arguments()
86 struct pt_regs *regs, in syscall_set_arguments()

12345678910>>...36