diff options
| author | Attilio Rao <attilio@FreeBSD.org> | 2012-10-09 14:32:30 +0000 |
|---|---|---|
| committer | Attilio Rao <attilio@FreeBSD.org> | 2012-10-09 14:32:30 +0000 |
| commit | 3a4730256a96ac1a229a7fe1f6171f669fb1d000 (patch) | |
| tree | 18e9f31a3018a88b46e78d76a45d0953dea5276b /sys/gnu | |
| parent | 6a762eb23ea5f31e65cfa12602937f39a14e9b0c (diff) | |
Notes
Diffstat (limited to 'sys/gnu')
| -rw-r--r-- | sys/gnu/fs/xfs/FreeBSD/xfs_compat.h | 4 | ||||
| -rw-r--r-- | sys/gnu/fs/xfs/FreeBSD/xfs_freebsd.h | 2 |
2 files changed, 1 insertions, 5 deletions
diff --git a/sys/gnu/fs/xfs/FreeBSD/xfs_compat.h b/sys/gnu/fs/xfs/FreeBSD/xfs_compat.h index 7229f277f13da..55a03c96bdad4 100644 --- a/sys/gnu/fs/xfs/FreeBSD/xfs_compat.h +++ b/sys/gnu/fs/xfs/FreeBSD/xfs_compat.h @@ -129,10 +129,6 @@ typedef dev_t os_dev_t; #define copy_from_user(dst, src, len) copyin((src), (dst), (len)) #endif -#ifndef barrier -#define barrier() __asm__ __volatile__("": : :"memory") -#endif - /* * Map simple global vairables to FreeBSD kernel equivalents */ diff --git a/sys/gnu/fs/xfs/FreeBSD/xfs_freebsd.h b/sys/gnu/fs/xfs/FreeBSD/xfs_freebsd.h index a47c413cb0d2a..cc1d8df0adc6f 100644 --- a/sys/gnu/fs/xfs/FreeBSD/xfs_freebsd.h +++ b/sys/gnu/fs/xfs/FreeBSD/xfs_freebsd.h @@ -162,7 +162,7 @@ */ #define EFSCORRUPTED 990 /* Filesystem is corrupted */ -#define SYNCHRONIZE() barrier() +#define SYNCHRONIZE() __compiler_membar() #define __return_address __builtin_return_address(0) /* |
