X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/0a7de7458d150b5d4dffc935ba399be265ef0a1a..4ba76501152d51ccb5647018f3192c6096367d48:/bsd/dev/arm/dtrace_isa.c diff --git a/bsd/dev/arm/dtrace_isa.c b/bsd/dev/arm/dtrace_isa.c index 23d09f6a0..1f8dbd2ef 100644 --- a/bsd/dev/arm/dtrace_isa.c +++ b/bsd/dev/arm/dtrace_isa.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005-2008 Apple Computer, Inc. All rights reserved. + * Copyright (c) 2005-2018 Apple Computer, Inc. All rights reserved. * * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ * @@ -26,8 +26,6 @@ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ */ -#define MACH__POSIX_C_SOURCE_PRIVATE 1 /* pulls in suitable savearea from - * mach/ppc/thread_status.h */ #include #include @@ -44,7 +42,7 @@ #include #include #include -#include +#include #include #include /* for thread_wakeup() */ #include @@ -123,7 +121,7 @@ xcRemote(void *foo) (pArg->f)(pArg->arg); } - if (hw_atomic_sub(&dt_xc_sync, 1) == 0) { + if (os_atomic_dec(&dt_xc_sync, relaxed) == 0) { thread_wakeup((event_t) &dt_xc_sync); } }