2 * Copyright (C) 2000 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
3 * Licensed under the GPL
6 #ifndef __UM_PTRACE_I386_H
7 #define __UM_PTRACE_I386_H
9 #define HOST_AUDIT_ARCH AUDIT_ARCH_I386
11 #include "linux/compiler.h"
12 #include "asm/ptrace-generic.h"
14 #define user_mode(r) UPT_IS_USER(&(r)->regs)
17 * Forward declaration to avoid including sysdep/tls.h, which causes a
18 * circular include, and compilation failures.
22 extern int ptrace_get_thread_area(struct task_struct *child, int idx,
23 struct user_desc __user *user_desc);
25 extern int ptrace_set_thread_area(struct task_struct *child, int idx,
26 struct user_desc __user *user_desc);