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%"
|
||||
|
||||
#define _ASM
|
||||
#ifdef __linux__
|
||||
#include <ia32/sys/asm_linkage.h>
|
||||
|
||||
#elif __FreeBSD__
|
||||
#include <machine/asmacros.h>
|
||||
#define SET_SIZE(x)
|
||||
#endif
|
||||
ENTRY(atomic_inc_8)
|
||||
ALTENTRY(atomic_inc_uchar)
|
||||
lock
|
||||
|
|
Loading…
Reference in New Issue