2005-04-16 15:20:36 -07:00
|
|
|
/*
|
2007-10-16 01:27:00 -07:00
|
|
|
* Copyright (C) 2000 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
|
2005-04-16 15:20:36 -07:00
|
|
|
* Licensed under the GPL
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __UM_PTRACE_I386_H
|
|
|
|
#define __UM_PTRACE_I386_H
|
|
|
|
|
2005-05-03 07:54:51 +01:00
|
|
|
#define HOST_AUDIT_ARCH AUDIT_ARCH_I386
|
|
|
|
|
2006-03-31 02:30:22 -08:00
|
|
|
#include "linux/compiler.h"
|
2005-04-16 15:20:36 -07:00
|
|
|
#include "asm/ptrace-generic.h"
|
|
|
|
|
|
|
|
#define user_mode(r) UPT_IS_USER(&(r)->regs)
|
|
|
|
|
2007-10-16 01:27:00 -07:00
|
|
|
/*
|
|
|
|
* Forward declaration to avoid including sysdep/tls.h, which causes a
|
|
|
|
* circular include, and compilation failures.
|
|
|
|
*/
|
|
|
|
struct user_desc;
|
|
|
|
|
2006-03-31 02:30:22 -08:00
|
|
|
extern int ptrace_get_thread_area(struct task_struct *child, int idx,
|
|
|
|
struct user_desc __user *user_desc);
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2006-03-31 02:30:22 -08:00
|
|
|
extern int ptrace_set_thread_area(struct task_struct *child, int idx,
|
|
|
|
struct user_desc __user *user_desc);
|
|
|
|
|
|
|
|
#endif
|