diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1995-11-14 08:00:00 +0000 |
---|---|---|
committer | <ralf@linux-mips.org> | 1995-11-14 08:00:00 +0000 |
commit | e7c2a72e2680827d6a733931273a93461c0d8d1b (patch) | |
tree | c9abeda78ef7504062bb2e816bcf3e3c9d680112 /include/asm-i386/ptrace.h | |
parent | ec6044459060a8c9ce7f64405c465d141898548c (diff) |
Import of Linux/MIPS 1.3.0
Diffstat (limited to 'include/asm-i386/ptrace.h')
-rw-r--r-- | include/asm-i386/ptrace.h | 24 |
1 files changed, 7 insertions, 17 deletions
diff --git a/include/asm-i386/ptrace.h b/include/asm-i386/ptrace.h index 294acc7bd..e379542cf 100644 --- a/include/asm-i386/ptrace.h +++ b/include/asm-i386/ptrace.h @@ -1,15 +1,5 @@ -#ifndef _ASM_I386_PTRACE_H -#define _ASM_I386_PTRACE_H - -/* - * linux/include/asm-i386/ptrace.h */ - * - * machine dependend structs and defines to help the user use - * the ptrace system call. - */ - -/* use ptrace (3 or 6, pid, PT_EXCL, data); to read or write - the processes registers. */ +#ifndef _I386_PTRACE_H +#define _I386_PTRACE_H #define EBX 0 #define ECX 1 @@ -53,9 +43,9 @@ struct pt_regs { unsigned short ss, __ssu; }; -/* - * This function computes the interrupt number from the stack frame - */ -#define pt_regs2irq(p) ((int) -(((struct pt_regs *)p)->orig_eax+2)) +#ifdef __KERNEL__ +#define user_mode(regs) ((VM_MASK & (regs)->eflags) || (3 & (regs)->cs)) +extern void show_regs(struct pt_regs *); +#endif -#endif /* _ASM_I386_PTRACE_H */ +#endif |