diff options
author | Jeff Dike <jdike@addtoit.com> | 2007-10-16 04:27:07 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-16 12:43:06 -0400 |
commit | 18badddaa84e13e126f4ca5df47ac55b97a2635a (patch) | |
tree | c57bee27c8144481a59546fcbd8487d9486c6a54 /arch/um/sys-x86_64/signal.c | |
parent | 6c738ffa9fea6869f5d51882dfefbba746e432b1 (diff) |
uml: rename pt_regs general-purpose register file
Before the removal of tt mode, access to a register on the skas-mode side of a
pt_regs struct looked like pt_regs.regs.skas.regs.regs[FOO]. This was bad
enough, but it became pt_regs.regs.regs.regs[FOO] with the removal of the
union from the middle. To get rid of the run of three "regs", the last field
is renamed to "gp".
Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/um/sys-x86_64/signal.c')
-rw-r--r-- | arch/um/sys-x86_64/signal.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/um/sys-x86_64/signal.c b/arch/um/sys-x86_64/signal.c index 9001d17fc3d8..c98dd7f31396 100644 --- a/arch/um/sys-x86_64/signal.c +++ b/arch/um/sys-x86_64/signal.c | |||
@@ -16,7 +16,7 @@ void copy_sc(struct uml_pt_regs *regs, void *from) | |||
16 | struct sigcontext *sc = from; | 16 | struct sigcontext *sc = from; |
17 | 17 | ||
18 | #define GETREG(regs, regno, sc, regname) \ | 18 | #define GETREG(regs, regno, sc, regname) \ |
19 | (regs)->regs[(regno) / sizeof(unsigned long)] = (sc)->regname | 19 | (regs)->gp[(regno) / sizeof(unsigned long)] = (sc)->regname |
20 | 20 | ||
21 | GETREG(regs, R8, sc, r8); | 21 | GETREG(regs, R8, sc, r8); |
22 | GETREG(regs, R9, sc, r9); | 22 | GETREG(regs, R9, sc, r9); |
@@ -47,7 +47,7 @@ static int copy_sc_from_user(struct pt_regs *regs, | |||
47 | int err = 0; | 47 | int err = 0; |
48 | 48 | ||
49 | #define GETREG(regs, regno, sc, regname) \ | 49 | #define GETREG(regs, regno, sc, regname) \ |
50 | __get_user((regs)->regs.regs[(regno) / sizeof(unsigned long)], \ | 50 | __get_user((regs)->regs.gp[(regno) / sizeof(unsigned long)], \ |
51 | &(sc)->regname) | 51 | &(sc)->regname) |
52 | 52 | ||
53 | err |= GETREG(regs, R8, from, r8); | 53 | err |= GETREG(regs, R8, from, r8); |
@@ -86,7 +86,7 @@ static int copy_sc_to_user(struct sigcontext __user *to, | |||
86 | err |= __put_user(0, &to->fs); | 86 | err |= __put_user(0, &to->fs); |
87 | 87 | ||
88 | #define PUTREG(regs, regno, sc, regname) \ | 88 | #define PUTREG(regs, regno, sc, regname) \ |
89 | __put_user((regs)->regs.regs[(regno) / sizeof(unsigned long)], \ | 89 | __put_user((regs)->regs.gp[(regno) / sizeof(unsigned long)], \ |
90 | &(sc)->regname) | 90 | &(sc)->regname) |
91 | 91 | ||
92 | err |= PUTREG(regs, RDI, to, rdi); | 92 | err |= PUTREG(regs, RDI, to, rdi); |