Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 80313
b: refs/heads/master
c: dbe3533
h: refs/heads/master
i:
  80311: e8e603f
v: v3
  • Loading branch information
Harvey Harrison authored and Ingo Molnar committed Jan 30, 2008
1 parent 6ff6b51 commit c5aad15
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 28 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 90d43d728d22a5e20c63c8db1cfb497210768f19
refs/heads/master: dbe3533b7f687402651e893d5b3a7b66f22d6487
43 changes: 16 additions & 27 deletions trunk/include/asm-x86/ptrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,6 @@

#ifndef __ASSEMBLY__

#ifdef __KERNEL__

/* the DS BTS struct is used for ptrace as well */
#include <asm/ds.h>

struct task_struct;
extern void ptrace_bts_take_timestamp(struct task_struct *, enum bts_qualifier);

#endif /* __KERNEL__ */


#ifdef __i386__
/* this struct defines the way the registers are stored on the
stack during a system call. */
Expand Down Expand Up @@ -69,16 +58,6 @@ struct pt_regs {
#include <asm/vm86.h>
#include <asm/segment.h>

struct task_struct;

extern unsigned long
convert_ip_to_linear(struct task_struct *child, struct pt_regs *regs);

extern void send_sigtrap(struct task_struct *tsk, struct pt_regs *regs, int error_code);

#define regs_return_value(regs) ((regs)->ax)

extern unsigned long profile_pc(struct pt_regs *regs);
#endif /* __KERNEL__ */

#else /* __i386__ */
Expand Down Expand Up @@ -143,20 +122,30 @@ struct pt_regs {
/* top of stack page */
};

#define regs_return_value(regs) ((regs)->ax)
#endif /* __KERNEL__ */
#endif /* !__i386__ */

extern unsigned long profile_pc(struct pt_regs *regs);
void signal_fault(struct pt_regs *regs, void __user *frame, char *where);
#ifdef __KERNEL__

/* the DS BTS struct is used for ptrace as well */
#include <asm/ds.h>

struct task_struct;

extern void ptrace_bts_take_timestamp(struct task_struct *, enum bts_qualifier);

extern unsigned long profile_pc(struct pt_regs *regs);

extern unsigned long
convert_ip_to_linear(struct task_struct *child, struct pt_regs *regs);

#endif /* __KERNEL__ */
#endif /* !__i386__ */
#ifdef CONFIG_X86_32
extern void send_sigtrap(struct task_struct *tsk, struct pt_regs *regs, int error_code);
#else
void signal_fault(struct pt_regs *regs, void __user *frame, char *where);
#endif

#ifdef __KERNEL__
#define regs_return_value(regs) ((regs)->ax)

/*
* user_mode_vm(regs) determines whether a register set came from user mode.
Expand Down

0 comments on commit c5aad15

Please sign in to comment.