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/os-Linux/skas/process.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/os-Linux/skas/process.c')
-rw-r--r-- | arch/um/os-Linux/skas/process.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/um/os-Linux/skas/process.c b/arch/um/os-Linux/skas/process.c index a20d313c823e..8e96c6dc6c90 100644 --- a/arch/um/os-Linux/skas/process.c +++ b/arch/um/os-Linux/skas/process.c | |||
@@ -138,7 +138,7 @@ static void handle_trap(int pid, struct uml_pt_regs *regs, | |||
138 | int err, status; | 138 | int err, status; |
139 | 139 | ||
140 | /* Mark this as a syscall */ | 140 | /* Mark this as a syscall */ |
141 | UPT_SYSCALL_NR(regs) = PT_SYSCALL_NR(regs->regs); | 141 | UPT_SYSCALL_NR(regs) = PT_SYSCALL_NR(regs->gp); |
142 | 142 | ||
143 | if (!local_using_sysemu) | 143 | if (!local_using_sysemu) |
144 | { | 144 | { |
@@ -352,7 +352,7 @@ void userspace(struct uml_pt_regs *regs) | |||
352 | 352 | ||
353 | /* Avoid -ERESTARTSYS handling in host */ | 353 | /* Avoid -ERESTARTSYS handling in host */ |
354 | if (PT_SYSCALL_NR_OFFSET != PT_SYSCALL_RET_OFFSET) | 354 | if (PT_SYSCALL_NR_OFFSET != PT_SYSCALL_RET_OFFSET) |
355 | PT_SYSCALL_NR(regs->regs) = -1; | 355 | PT_SYSCALL_NR(regs->gp) = -1; |
356 | } | 356 | } |
357 | } | 357 | } |
358 | } | 358 | } |