Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 86353
b: refs/heads/master
c: f18edc9
h: refs/heads/master
i:
  86351: 8136814
v: v3
  • Loading branch information
Thomas Gleixner authored and Ingo Molnar committed Feb 26, 2008
1 parent cac75eb commit 5b19a02
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 12c247a6719987aad65f83158d2bb3e73c75c1f5
refs/heads/master: f18edc95a37a901ffcbe91f5e05105f916a04fae
7 changes: 7 additions & 0 deletions trunk/include/asm-x86/futex.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,13 @@ futex_atomic_op_inuser(int encoded_op, int __user *uaddr)
static inline int
futex_atomic_cmpxchg_inatomic(int __user *uaddr, int oldval, int newval)
{

#if defined(CONFIG_X86_32) && !defined(CONFIG_X86_BSWAP)
/* Real i386 machines have no cmpxchg instruction */
if (boot_cpu_data.x86 == 3)
return -ENOSYS;
#endif

if (!access_ok(VERIFY_WRITE, uaddr, sizeof(int)))
return -EFAULT;

Expand Down

0 comments on commit 5b19a02

Please sign in to comment.