2 * Copyright (c) 2017 Apple Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. Please obtain a copy of the License at
10 * http://www.opensource.apple.com/apsl/ and read it before using this
13 * The Original Code and all software distributed under the License are
14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
18 * Please see the License for the specific language governing rights and
19 * limitations under the License.
21 * @APPLE_LICENSE_HEADER_END@
25 #ifndef __DYLD_BOOTARGS_H__
26 #define __DYLD_BOOTARGS_H__
30 #define VIS_HIDDEN __attribute__((visibility("hidden")))
34 struct VIS_HIDDEN BootArgs
{
35 static bool forceCustomerCache();
36 static bool forceDevelopmentCache();
37 static bool forceDyld2();
38 static bool forceDyld3();
39 static bool enableDyldTestMode();
40 static bool enableCompactImageInfo();
41 static void setFlags(uint64_t flags
);
43 static const uint64_t kForceCustomerCacheMask
= 1<<0;
44 static const uint64_t kDyldTestModeMask
= 1<<1;
45 static const uint64_t kForceDevelopmentCacheMask
= 1<<2;
46 static const uint64_t kForceDyld2CacheMask
= 1<<15;
47 static const uint64_t kForceDyld3CacheMask
= 1<<16;
48 static const uint64_t kEnableCompactImageInfoMask
= 1<<17;
49 //FIXME: Move this into __DATA_CONST once it is enabled for dyld
50 static uint64_t _flags
;
56 #endif /* __DYLD_BOOTARGS_H__ */