Lines Matching refs:pt_regs
12 struct pt_regs {
56 struct pt_regs {
59 * unless syscall needs a complete, fully filled "struct pt_regs".
102 extern unsigned long profile_pc(struct pt_regs *regs);
105 convert_ip_to_linear(struct task_struct *child, struct pt_regs *regs);
106 extern void send_sigtrap(struct pt_regs *regs, int error_code, int si_code);
109 static inline unsigned long regs_return_value(struct pt_regs *regs)
114 static inline void regs_set_return_value(struct pt_regs *regs, unsigned long rc)
128 static __always_inline int user_mode(struct pt_regs *regs)
137 static inline int v8086_mode(struct pt_regs *regs)
146 static inline bool user_64bit_mode(struct pt_regs *regs)
168 static inline bool any_64bit_mode(struct pt_regs *regs)
181 static inline bool ip_within_syscall_gap(struct pt_regs *regs)
195 static inline unsigned long kernel_stack_pointer(struct pt_regs *regs)
200 static inline unsigned long instruction_pointer(struct pt_regs *regs)
205 static inline void instruction_pointer_set(struct pt_regs *regs,
211 static inline unsigned long frame_pointer(struct pt_regs *regs)
216 static inline unsigned long user_stack_pointer(struct pt_regs *regs)
221 static inline void user_stack_pointer_set(struct pt_regs *regs,
227 static __always_inline bool regs_irqs_disabled(struct pt_regs *regs)
235 #define MAX_REG_OFFSET (offsetof(struct pt_regs, ss))
239 * @regs: pt_regs from which register value is gotten.
243 * offset of the register in struct pt_regs address which specified by @regs.
246 static inline unsigned long regs_get_register(struct pt_regs *regs,
253 if (offset == offsetof(struct pt_regs, cs) ||
254 offset == offsetof(struct pt_regs, ss) ||
255 offset == offsetof(struct pt_regs, ds) ||
256 offset == offsetof(struct pt_regs, es) ||
257 offset == offsetof(struct pt_regs, fs) ||
258 offset == offsetof(struct pt_regs, gs)) {
268 * @regs: pt_regs which contains kernel stack pointer.
274 static inline int regs_within_kernel_stack(struct pt_regs *regs,
282 * @regs: pt_regs which contains kernel stack pointer.
289 static inline unsigned long *regs_get_kernel_stack_nth_addr(struct pt_regs *regs, unsigned int n)
305 * @regs: pt_regs which contains kernel stack pointer.
312 static inline unsigned long regs_get_kernel_stack_nth(struct pt_regs *regs,
330 * @regs: pt_regs of that context
339 static inline unsigned long regs_get_kernel_argument(struct pt_regs *regs,
344 offsetof(struct pt_regs, ax),
345 offsetof(struct pt_regs, dx),
346 offsetof(struct pt_regs, cx),
349 offsetof(struct pt_regs, di),
350 offsetof(struct pt_regs, si),
351 offsetof(struct pt_regs, dx),
352 offsetof(struct pt_regs, cx),
353 offsetof(struct pt_regs, r8),
354 offsetof(struct pt_regs, r9),