aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-um/ptrace-generic.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /include/asm-um/ptrace-generic.h
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
Diffstat (limited to 'include/asm-um/ptrace-generic.h')
-rw-r--r--include/asm-um/ptrace-generic.h76
1 files changed, 76 insertions, 0 deletions
diff --git a/include/asm-um/ptrace-generic.h b/include/asm-um/ptrace-generic.h
new file mode 100644
index 000000000000..46599ac44037
--- /dev/null
+++ b/include/asm-um/ptrace-generic.h
@@ -0,0 +1,76 @@
1/*
2 * Copyright (C) 2000, 2001, 2002 Jeff Dike (jdike@karaya.com)
3 * Licensed under the GPL
4 */
5
6#ifndef __UM_PTRACE_GENERIC_H
7#define __UM_PTRACE_GENERIC_H
8
9#ifndef __ASSEMBLY__
10
11#include "linux/config.h"
12
13#define pt_regs pt_regs_subarch
14#define show_regs show_regs_subarch
15#define send_sigtrap send_sigtrap_subarch
16
17#include "asm/arch/ptrace.h"
18
19#undef pt_regs
20#undef show_regs
21#undef send_sigtrap
22#undef user_mode
23#undef instruction_pointer
24
25#include "sysdep/ptrace.h"
26
27struct pt_regs {
28 union uml_pt_regs regs;
29};
30
31#define EMPTY_REGS { regs : EMPTY_UML_PT_REGS }
32
33#define PT_REGS_IP(r) UPT_IP(&(r)->regs)
34#define PT_REGS_SP(r) UPT_SP(&(r)->regs)
35
36#define PT_REG(r, reg) UPT_REG(&(r)->regs, reg)
37#define PT_REGS_SET(r, reg, val) UPT_SET(&(r)->regs, reg, val)
38
39#define PT_REGS_SET_SYSCALL_RETURN(r, res) \
40 UPT_SET_SYSCALL_RETURN(&(r)->regs, res)
41#define PT_REGS_RESTART_SYSCALL(r) UPT_RESTART_SYSCALL(&(r)->regs)
42
43#define PT_REGS_SYSCALL_NR(r) UPT_SYSCALL_NR(&(r)->regs)
44
45#define PT_REGS_SC(r) UPT_SC(&(r)->regs)
46
47#define instruction_pointer(regs) PT_REGS_IP(regs)
48
49struct task_struct;
50
51extern unsigned long getreg(struct task_struct *child, int regno);
52extern int putreg(struct task_struct *child, int regno, unsigned long value);
53extern int get_fpregs(unsigned long buf, struct task_struct *child);
54extern int set_fpregs(unsigned long buf, struct task_struct *child);
55extern int get_fpxregs(unsigned long buf, struct task_struct *child);
56extern int set_fpxregs(unsigned long buf, struct task_struct *tsk);
57
58extern void show_regs(struct pt_regs *regs);
59
60extern void send_sigtrap(struct task_struct *tsk, union uml_pt_regs *regs,
61 int error_code);
62
63#endif
64
65#endif
66
67/*
68 * Overrides for Emacs so that we follow Linus's tabbing style.
69 * Emacs will notice this stuff at the end of the file and automatically
70 * adjust the settings for this buffer only. This must remain at the end
71 * of the file.
72 * ---------------------------------------------------------------------------
73 * Local variables:
74 * c-file-style: "linux"
75 * End:
76 */