aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-um/ptrace-x86_64.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-x86_64.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-x86_64.h')
-rw-r--r--include/asm-um/ptrace-x86_64.h75
1 files changed, 75 insertions, 0 deletions
diff --git a/include/asm-um/ptrace-x86_64.h b/include/asm-um/ptrace-x86_64.h
new file mode 100644
index 000000000000..c34be39b78b2
--- /dev/null
+++ b/include/asm-um/ptrace-x86_64.h
@@ -0,0 +1,75 @@
1/*
2 * Copyright 2003 PathScale, Inc.
3 *
4 * Licensed under the GPL
5 */
6
7#ifndef __UM_PTRACE_X86_64_H
8#define __UM_PTRACE_X86_64_H
9
10#include "linux/compiler.h"
11
12#define signal_fault signal_fault_x86_64
13#define __FRAME_OFFSETS /* Needed to get the R* macros */
14#include "asm/ptrace-generic.h"
15#undef signal_fault
16
17void signal_fault(struct pt_regs_subarch *regs, void *frame, char *where);
18
19#define FS_BASE (21 * sizeof(unsigned long))
20#define GS_BASE (22 * sizeof(unsigned long))
21#define DS (23 * sizeof(unsigned long))
22#define ES (24 * sizeof(unsigned long))
23#define FS (25 * sizeof(unsigned long))
24#define GS (26 * sizeof(unsigned long))
25
26#define PT_REGS_RBX(r) UPT_RBX(&(r)->regs)
27#define PT_REGS_RCX(r) UPT_RCX(&(r)->regs)
28#define PT_REGS_RDX(r) UPT_RDX(&(r)->regs)
29#define PT_REGS_RSI(r) UPT_RSI(&(r)->regs)
30#define PT_REGS_RDI(r) UPT_RDI(&(r)->regs)
31#define PT_REGS_RBP(r) UPT_RBP(&(r)->regs)
32#define PT_REGS_RAX(r) UPT_RAX(&(r)->regs)
33#define PT_REGS_R8(r) UPT_R8(&(r)->regs)
34#define PT_REGS_R9(r) UPT_R9(&(r)->regs)
35#define PT_REGS_R10(r) UPT_R10(&(r)->regs)
36#define PT_REGS_R11(r) UPT_R11(&(r)->regs)
37#define PT_REGS_R12(r) UPT_R12(&(r)->regs)
38#define PT_REGS_R13(r) UPT_R13(&(r)->regs)
39#define PT_REGS_R14(r) UPT_R14(&(r)->regs)
40#define PT_REGS_R15(r) UPT_R15(&(r)->regs)
41
42#define PT_REGS_FS(r) UPT_FS(&(r)->regs)
43#define PT_REGS_GS(r) UPT_GS(&(r)->regs)
44#define PT_REGS_DS(r) UPT_DS(&(r)->regs)
45#define PT_REGS_ES(r) UPT_ES(&(r)->regs)
46#define PT_REGS_SS(r) UPT_SS(&(r)->regs)
47#define PT_REGS_CS(r) UPT_CS(&(r)->regs)
48
49#define PT_REGS_ORIG_RAX(r) UPT_ORIG_RAX(&(r)->regs)
50#define PT_REGS_RIP(r) UPT_IP(&(r)->regs)
51#define PT_REGS_RSP(r) UPT_SP(&(r)->regs)
52
53#define PT_REGS_EFLAGS(r) UPT_EFLAGS(&(r)->regs)
54
55/* XXX */
56#define user_mode(r) UPT_IS_USER(&(r)->regs)
57#define PT_REGS_ORIG_SYSCALL(r) PT_REGS_RAX(r)
58#define PT_REGS_SYSCALL_RET(r) PT_REGS_RAX(r)
59
60#define PT_FIX_EXEC_STACK(sp) do ; while(0)
61
62#define profile_pc(regs) PT_REGS_IP(regs)
63
64#endif
65
66/*
67 * Overrides for Emacs so that we follow Linus's tabbing style.
68 * Emacs will notice this stuff at the end of the file and automatically
69 * adjust the settings for this buffer only. This must remain at the end
70 * of the file.
71 * ---------------------------------------------------------------------------
72 * Local variables:
73 * c-file-style: "linux"
74 * End:
75 */