Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 136943
b: refs/heads/master
c: 8801ead
h: refs/heads/master
i:
  136941: 3ae82ec
  136939: 92d2d38
  136935: cfd6403
  136927: d7f460b
v: v3
  • Loading branch information
Hiroshi Shimamoto authored and Ingo Molnar committed Feb 22, 2009
1 parent 61f734d commit 0120826
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 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: a47e3ec197f515e25c77805f02d26f9e86456f65
refs/heads/master: 8801ead40caa8ba9c7d47a06ff1247c166cbfd5a
14 changes: 9 additions & 5 deletions trunk/arch/x86/ia32/ia32_signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,11 +192,15 @@ asmlinkage long sys32_sigaltstack(const stack_ia32_t __user *uss_ptr,
get_user_ex(regs->x, &sc->x); \
}

#define COPY_SEG_CPL3(seg) { \
unsigned short tmp; \
get_user_ex(tmp, &sc->seg); \
regs->seg = tmp | 3; \
}
#define GET_SEG(seg) ({ \
unsigned short tmp; \
get_user_ex(tmp, &sc->seg); \
tmp; \
})

#define COPY_SEG_CPL3(seg) do { \
regs->seg = GET_SEG(seg) | 3; \
} while (0)

#define RELOAD_SEG(seg) { \
unsigned int cur, pre; \
Expand Down

0 comments on commit 0120826

Please sign in to comment.