Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
Jeff Dike | ba180fd | 2007-10-16 01:27:00 -0700 | [diff] [blame] | 2 | * Copyright (C) 2000 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3 | * Licensed under the GPL |
| 4 | */ |
| 5 | |
| 6 | #ifndef __UM_PTRACE_I386_H |
| 7 | #define __UM_PTRACE_I386_H |
| 8 | |
Jeff Dike | 79d20b1 | 2005-05-03 07:54:51 +0100 | [diff] [blame] | 9 | #define HOST_AUDIT_ARCH AUDIT_ARCH_I386 |
| 10 | |
Paolo 'Blaisorblade' Giarrusso | aa6758d | 2006-03-31 02:30:22 -0800 | [diff] [blame] | 11 | #include "linux/compiler.h" |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 12 | #include "asm/ptrace-generic.h" |
| 13 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 14 | #define user_mode(r) UPT_IS_USER(&(r)->regs) |
| 15 | |
Jeff Dike | ba180fd | 2007-10-16 01:27:00 -0700 | [diff] [blame] | 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 | |
Paolo 'Blaisorblade' Giarrusso | aa6758d | 2006-03-31 02:30:22 -0800 | [diff] [blame] | 22 | extern int ptrace_get_thread_area(struct task_struct *child, int idx, |
| 23 | struct user_desc __user *user_desc); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 24 | |
Paolo 'Blaisorblade' Giarrusso | aa6758d | 2006-03-31 02:30:22 -0800 | [diff] [blame] | 25 | extern int ptrace_set_thread_area(struct task_struct *child, int idx, |
| 26 | struct user_desc __user *user_desc); |
| 27 | |
Paolo 'Blaisorblade' Giarrusso | aa6758d | 2006-03-31 02:30:22 -0800 | [diff] [blame] | 28 | #endif |