aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/ptrace.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/include/asm/ptrace.h')
-rw-r--r--arch/x86/include/asm/ptrace.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/x86/include/asm/ptrace.h b/arch/x86/include/asm/ptrace.h
index a3d49dd7d26..3d11fd0f44c 100644
--- a/arch/x86/include/asm/ptrace.h
+++ b/arch/x86/include/asm/ptrace.h
@@ -227,8 +227,8 @@ extern const char *regs_query_register_name(unsigned int offset);
227 * @regs: pt_regs from which register value is gotten. 227 * @regs: pt_regs from which register value is gotten.
228 * @offset: offset number of the register. 228 * @offset: offset number of the register.
229 * 229 *
230 * regs_get_register returns the value of a register whose offset from @regs 230 * regs_get_register returns the value of a register. The @offset is the
231 * is @offset. The @offset is the offset of the register in struct pt_regs. 231 * offset of the register in struct pt_regs address which specified by @regs.
232 * If @offset is bigger than MAX_REG_OFFSET, this returns 0. 232 * If @offset is bigger than MAX_REG_OFFSET, this returns 0.
233 */ 233 */
234static inline unsigned long regs_get_register(struct pt_regs *regs, 234static inline unsigned long regs_get_register(struct pt_regs *regs,
@@ -244,7 +244,7 @@ static inline unsigned long regs_get_register(struct pt_regs *regs,
244 * @regs: pt_regs which contains kernel stack pointer. 244 * @regs: pt_regs which contains kernel stack pointer.
245 * @addr: address which is checked. 245 * @addr: address which is checked.
246 * 246 *
247 * regs_within_kenel_stack() checks @addr is within the kernel stack page(s). 247 * regs_within_kernel_stack() checks @addr is within the kernel stack page(s).
248 * If @addr is within the kernel stack, it returns true. If not, returns false. 248 * If @addr is within the kernel stack, it returns true. If not, returns false.
249 */ 249 */
250static inline int regs_within_kernel_stack(struct pt_regs *regs, 250static inline int regs_within_kernel_stack(struct pt_regs *regs,
@@ -260,7 +260,7 @@ static inline int regs_within_kernel_stack(struct pt_regs *regs,
260 * @n: stack entry number. 260 * @n: stack entry number.
261 * 261 *
262 * regs_get_kernel_stack_nth() returns @n th entry of the kernel stack which 262 * regs_get_kernel_stack_nth() returns @n th entry of the kernel stack which
263 * is specifined by @regs. If the @n th entry is NOT in the kernel stack, 263 * is specified by @regs. If the @n th entry is NOT in the kernel stack,
264 * this returns 0. 264 * this returns 0.
265 */ 265 */
266static inline unsigned long regs_get_kernel_stack_nth(struct pt_regs *regs, 266static inline unsigned long regs_get_kernel_stack_nth(struct pt_regs *regs,