2cf225351b655df2259be924d54fc7f06632d5ac
[linux-3.10.git] / arch / x86 / um / asm / ptrace_32.h
1 /* 
2  * Copyright (C) 2000 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
3  * Licensed under the GPL
4  */
5
6 #ifndef __UM_PTRACE_I386_H
7 #define __UM_PTRACE_I386_H
8
9 #define HOST_AUDIT_ARCH AUDIT_ARCH_I386
10
11 #include "linux/compiler.h"
12 #include "asm/ptrace-generic.h"
13
14 #define user_mode(r) UPT_IS_USER(&(r)->regs)
15
16 /*
17  * Forward declaration to avoid including sysdep/tls.h, which causes a
18  * circular include, and compilation failures.
19  */
20 struct user_desc;
21
22 extern int ptrace_get_thread_area(struct task_struct *child, int idx,
23                                   struct user_desc __user *user_desc);
24
25 extern int ptrace_set_thread_area(struct task_struct *child, int idx,
26                                   struct user_desc __user *user_desc);
27
28 #endif