um: mdd support for 64 bit atomic operations
commit85b79c0b5b206bc9d1f5279d007d4845ad0e03a5
authorRichard Weinberger <richard@nod.at>
Wed, 27 Apr 2011 22:26:51 +0000 (27 15:26 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 2 May 2011 16:19:46 +0000 (2 09:19 -0700)
tree77894f5d54d068b48b82ebd398aaf1438d4a27d0
parent20857f111ec4c3e5aea039c5c06d5254aeeb620c
um: mdd support for 64 bit atomic operations

commit 57d8e02e3cd21bccf2b84b26b42feb79e1f0f83e upstream.

This adds support for 64 bit atomic operations on 32 bit UML systems.  XFS
needs them since 2.6.38.

  $ make ARCH=um SUBARCH=i386
  ...
    LD      .tmp_vmlinux1
  fs/built-in.o: In function `xlog_regrant_reserve_log_space':
  xfs_log.c:(.text+0xd8584): undefined reference to `atomic64_read_386'
  xfs_log.c:(.text+0xd85ac): undefined reference to `cmpxchg8b_emu'
  ...

Addresses https://bugzilla.kernel.org/show_bug.cgi?id=32812

Reported-by: Martin Walch <walch.martin@web.de>
Tested-by: Martin Walch <walch.martin@web.de>
Cc: Martin Walch <walch.martin@web.de>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/um/sys-i386/Makefile
arch/um/sys-i386/atomic64_cx8_32.S [new file with mode: 0644]