aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/sys-x86_64/signal.c
diff options
context:
space:
mode:
authorJeff Dike <jdike@addtoit.com>2008-01-30 07:31:08 -0500
committerIngo Molnar <mingo@elte.hu>2008-01-30 07:31:08 -0500
commit7796931f542518092d1fd2fb7cf1f1d96e0cd4b5 (patch)
tree1daf33db62ed441347ba72dab8474b4bbf4b333b /arch/um/sys-x86_64/signal.c
parentd46d7d754014a299fa9b3400d080e09bfe4d629f (diff)
UML: change sigcontext fields to match x86
git-x86, in commit 70aa1bd3839e3ec74ce65316528a82570e8de666, changed a lot of the sigcontext field names. This patch changes UML usage to match. I also changed includes of generic headers from "" to <>. Signed-off-by: Jeff Dike <jdike@linux.intel.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/um/sys-x86_64/signal.c')
-rw-r--r--arch/um/sys-x86_64/signal.c70
1 files changed, 35 insertions, 35 deletions
diff --git a/arch/um/sys-x86_64/signal.c b/arch/um/sys-x86_64/signal.c
index 1778d33808f4..7457436b433a 100644
--- a/arch/um/sys-x86_64/signal.c
+++ b/arch/um/sys-x86_64/signal.c
@@ -4,11 +4,11 @@
4 * Licensed under the GPL 4 * Licensed under the GPL
5 */ 5 */
6 6
7#include "linux/personality.h" 7#include <linux/personality.h>
8#include "linux/ptrace.h" 8#include <linux/ptrace.h>
9#include "asm/unistd.h" 9#include <asm/unistd.h>
10#include "asm/uaccess.h" 10#include <asm/uaccess.h>
11#include "asm/ucontext.h" 11#include <asm/ucontext.h>
12#include "frame_kern.h" 12#include "frame_kern.h"
13#include "skas.h" 13#include "skas.h"
14 14
@@ -27,16 +27,16 @@ void copy_sc(struct uml_pt_regs *regs, void *from)
27 GETREG(regs, R13, sc, r13); 27 GETREG(regs, R13, sc, r13);
28 GETREG(regs, R14, sc, r14); 28 GETREG(regs, R14, sc, r14);
29 GETREG(regs, R15, sc, r15); 29 GETREG(regs, R15, sc, r15);
30 GETREG(regs, RDI, sc, rdi); 30 GETREG(regs, RDI, sc, di);
31 GETREG(regs, RSI, sc, rsi); 31 GETREG(regs, RSI, sc, si);
32 GETREG(regs, RBP, sc, rbp); 32 GETREG(regs, RBP, sc, bp);
33 GETREG(regs, RBX, sc, rbx); 33 GETREG(regs, RBX, sc, bx);
34 GETREG(regs, RDX, sc, rdx); 34 GETREG(regs, RDX, sc, dx);
35 GETREG(regs, RAX, sc, rax); 35 GETREG(regs, RAX, sc, ax);
36 GETREG(regs, RCX, sc, rcx); 36 GETREG(regs, RCX, sc, cx);
37 GETREG(regs, RSP, sc, rsp); 37 GETREG(regs, RSP, sc, sp);
38 GETREG(regs, RIP, sc, rip); 38 GETREG(regs, RIP, sc, ip);
39 GETREG(regs, EFLAGS, sc, eflags); 39 GETREG(regs, EFLAGS, sc, flags);
40 GETREG(regs, CS, sc, cs); 40 GETREG(regs, CS, sc, cs);
41 41
42#undef GETREG 42#undef GETREG
@@ -61,16 +61,16 @@ static int copy_sc_from_user(struct pt_regs *regs,
61 err |= GETREG(regs, R13, from, r13); 61 err |= GETREG(regs, R13, from, r13);
62 err |= GETREG(regs, R14, from, r14); 62 err |= GETREG(regs, R14, from, r14);
63 err |= GETREG(regs, R15, from, r15); 63 err |= GETREG(regs, R15, from, r15);
64 err |= GETREG(regs, RDI, from, rdi); 64 err |= GETREG(regs, RDI, from, di);
65 err |= GETREG(regs, RSI, from, rsi); 65 err |= GETREG(regs, RSI, from, si);
66 err |= GETREG(regs, RBP, from, rbp); 66 err |= GETREG(regs, RBP, from, bp);
67 err |= GETREG(regs, RBX, from, rbx); 67 err |= GETREG(regs, RBX, from, bx);
68 err |= GETREG(regs, RDX, from, rdx); 68 err |= GETREG(regs, RDX, from, dx);
69 err |= GETREG(regs, RAX, from, rax); 69 err |= GETREG(regs, RAX, from, ax);
70 err |= GETREG(regs, RCX, from, rcx); 70 err |= GETREG(regs, RCX, from, cx);
71 err |= GETREG(regs, RSP, from, rsp); 71 err |= GETREG(regs, RSP, from, sp);
72 err |= GETREG(regs, RIP, from, rip); 72 err |= GETREG(regs, RIP, from, ip);
73 err |= GETREG(regs, EFLAGS, from, eflags); 73 err |= GETREG(regs, EFLAGS, from, flags);
74 err |= GETREG(regs, CS, from, cs); 74 err |= GETREG(regs, CS, from, cs);
75 if (err) 75 if (err)
76 return 1; 76 return 1;
@@ -108,19 +108,19 @@ static int copy_sc_to_user(struct sigcontext __user *to,
108 __put_user((regs)->regs.gp[(regno) / sizeof(unsigned long)], \ 108 __put_user((regs)->regs.gp[(regno) / sizeof(unsigned long)], \
109 &(sc)->regname) 109 &(sc)->regname)
110 110
111 err |= PUTREG(regs, RDI, to, rdi); 111 err |= PUTREG(regs, RDI, to, di);
112 err |= PUTREG(regs, RSI, to, rsi); 112 err |= PUTREG(regs, RSI, to, si);
113 err |= PUTREG(regs, RBP, to, rbp); 113 err |= PUTREG(regs, RBP, to, bp);
114 /* 114 /*
115 * Must use orignal RSP, which is passed in, rather than what's in 115 * Must use orignal RSP, which is passed in, rather than what's in
116 * the pt_regs, because that's already been updated to point at the 116 * the pt_regs, because that's already been updated to point at the
117 * signal frame. 117 * signal frame.
118 */ 118 */
119 err |= __put_user(sp, &to->rsp); 119 err |= __put_user(sp, &to->sp);
120 err |= PUTREG(regs, RBX, to, rbx); 120 err |= PUTREG(regs, RBX, to, bx);
121 err |= PUTREG(regs, RDX, to, rdx); 121 err |= PUTREG(regs, RDX, to, dx);
122 err |= PUTREG(regs, RCX, to, rcx); 122 err |= PUTREG(regs, RCX, to, cx);
123 err |= PUTREG(regs, RAX, to, rax); 123 err |= PUTREG(regs, RAX, to, ax);
124 err |= PUTREG(regs, R8, to, r8); 124 err |= PUTREG(regs, R8, to, r8);
125 err |= PUTREG(regs, R9, to, r9); 125 err |= PUTREG(regs, R9, to, r9);
126 err |= PUTREG(regs, R10, to, r10); 126 err |= PUTREG(regs, R10, to, r10);
@@ -135,8 +135,8 @@ static int copy_sc_to_user(struct sigcontext __user *to,
135 err |= __put_user(fi->error_code, &to->err); 135 err |= __put_user(fi->error_code, &to->err);
136 err |= __put_user(fi->trap_no, &to->trapno); 136 err |= __put_user(fi->trap_no, &to->trapno);
137 137
138 err |= PUTREG(regs, RIP, to, rip); 138 err |= PUTREG(regs, RIP, to, ip);
139 err |= PUTREG(regs, EFLAGS, to, eflags); 139 err |= PUTREG(regs, EFLAGS, to, flags);
140#undef PUTREG 140#undef PUTREG
141 141
142 err |= __put_user(mask, &to->oldmask); 142 err |= __put_user(mask, &to->oldmask);