X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/0a7de7458d150b5d4dffc935ba399be265ef0a1a..2a1bd2d3eef5c7a7bb14f4bb9fdbca9a96ee4752:/osfmk/arm/simple_lock.h diff --git a/osfmk/arm/simple_lock.h b/osfmk/arm/simple_lock.h index 3f4d5c91a..b0dd0d928 100644 --- a/osfmk/arm/simple_lock.h +++ b/osfmk/arm/simple_lock.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2007 Apple Inc. All rights reserved. + * Copyright (c) 2019 Apple Inc. All rights reserved. * * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ * @@ -73,109 +73,11 @@ #ifdef MACH_KERNEL_PRIVATE -typedef uint32_t hw_lock_bit_t; - -#if LOCK_STATS -extern void hw_lock_bit( - hw_lock_bit_t *, - unsigned int, - lck_grp_t*); - -extern void hw_lock_bit_nopreempt( - hw_lock_bit_t *, - unsigned int, - lck_grp_t*); - -extern unsigned int hw_lock_bit_try( - hw_lock_bit_t *, - unsigned int, - lck_grp_t*); - -extern unsigned int hw_lock_bit_to( - hw_lock_bit_t *, - unsigned int, - uint32_t, - lck_grp_t*); - -#else -extern void hw_lock_bit( - hw_lock_bit_t *, - unsigned int); -#define hw_lock_bit(lck, bit, grp) hw_lock_bit(lck, bit) - -extern void hw_lock_bit_nopreempt( - hw_lock_bit_t *, - unsigned int); -#define hw_lock_bit_nopreempt(lck, bit, grp) hw_lock_bit_nopreempt(lck, bit) - -extern unsigned int hw_lock_bit_try( - hw_lock_bit_t *, - unsigned int); -#define hw_lock_bit_try(lck, bit, grp) hw_lock_bit_try(lck, bit) - -extern unsigned int hw_lock_bit_to( - hw_lock_bit_t *, - unsigned int, - uint32_t); -#define hw_lock_bit_to(lck, bit, timeout, grp) hw_lock_bit_to(lck, bit, timeout) - -#endif /* LOCK_STATS */ - -extern void hw_unlock_bit( - hw_lock_bit_t *, - unsigned int); - -extern void hw_unlock_bit_nopreempt( - hw_lock_bit_t *, - unsigned int); - -#define hw_lock_bit_held(l, b) (((*(l))&(1<