Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 5654
b: refs/heads/master
c: e8ed11b
h: refs/heads/master
v: v3
  • Loading branch information
Daniel Jacobowitz authored and Linus Torvalds committed Aug 4, 2005
1 parent 529a206 commit d303977
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c91096d85c95c6b7fe8d7065e2aa6825e0bdaca9
refs/heads/master: e8ed11b9dc07df0134248542ca8e7d40751a6052
8 changes: 4 additions & 4 deletions trunk/arch/x86_64/ia32/ptrace32.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ static int putreg32(struct task_struct *child, unsigned regno, u32 val)
switch (regno) {
case offsetof(struct user32, regs.fs):
if (val && (val & 3) != 3) return -EIO;
child->thread.fs = val & 0xffff;
child->thread.fsindex = val & 0xffff;
break;
case offsetof(struct user32, regs.gs):
if (val && (val & 3) != 3) return -EIO;
child->thread.gs = val & 0xffff;
child->thread.gsindex = val & 0xffff;
break;
case offsetof(struct user32, regs.ds):
if (val && (val & 3) != 3) return -EIO;
Expand Down Expand Up @@ -138,10 +138,10 @@ static int getreg32(struct task_struct *child, unsigned regno, u32 *val)

switch (regno) {
case offsetof(struct user32, regs.fs):
*val = child->thread.fs;
*val = child->thread.fsindex;
break;
case offsetof(struct user32, regs.gs):
*val = child->thread.gs;
*val = child->thread.gsindex;
break;
case offsetof(struct user32, regs.ds):
*val = child->thread.ds;
Expand Down

0 comments on commit d303977

Please sign in to comment.