mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-01-14 20:20:26 +03:00
Make asm-x86_64/atomic.S build on FreeBSD
Include the required headers for FreeBSD. Reviewed-by: Jorgen Lundman <lundman@lundman.net> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Matt Macy <mmacy@FreeBSD.org> Closes #9634
This commit is contained in:
parent
f348c78f97
commit
c54687cd23
@ -28,8 +28,12 @@
|
|||||||
.file "%M%"
|
.file "%M%"
|
||||||
|
|
||||||
#define _ASM
|
#define _ASM
|
||||||
|
#ifdef __linux__
|
||||||
#include <ia32/sys/asm_linkage.h>
|
#include <ia32/sys/asm_linkage.h>
|
||||||
|
#elif __FreeBSD__
|
||||||
|
#include <machine/asmacros.h>
|
||||||
|
#define SET_SIZE(x)
|
||||||
|
#endif
|
||||||
ENTRY(atomic_inc_8)
|
ENTRY(atomic_inc_8)
|
||||||
ALTENTRY(atomic_inc_uchar)
|
ALTENTRY(atomic_inc_uchar)
|
||||||
lock
|
lock
|
||||||
|
Loading…
Reference in New Issue
Block a user