xref: /xnu-11417.140.69/bsd/arm/profile.h (revision 43a90889846e00bfb5cf1d255cdc0a701a1e05a4)
1*43a90889SApple OSS Distributions /*
2*43a90889SApple OSS Distributions  * Copyright (c) 2000-2007 Apple Inc. All rights reserved.
3*43a90889SApple OSS Distributions  */
4*43a90889SApple OSS Distributions /*
5*43a90889SApple OSS Distributions  * Copyright (c) 1997, Apple Computer, Inc. All rights reserved.
6*43a90889SApple OSS Distributions  *
7*43a90889SApple OSS Distributions  */
8*43a90889SApple OSS Distributions 
9*43a90889SApple OSS Distributions #ifndef _BSD_ARM_PROFILE_H_
10*43a90889SApple OSS Distributions #define _BSD_ARM_PROFILE_H_
11*43a90889SApple OSS Distributions 
12*43a90889SApple OSS Distributions #if defined (__arm__) || defined (__arm64__)
13*43a90889SApple OSS Distributions 
14*43a90889SApple OSS Distributions #include <sys/appleapiopts.h>
15*43a90889SApple OSS Distributions 
16*43a90889SApple OSS Distributions #ifdef KERNEL
17*43a90889SApple OSS Distributions #ifdef __APPLE_API_UNSTABLE
18*43a90889SApple OSS Distributions 
19*43a90889SApple OSS Distributions /*
20*43a90889SApple OSS Distributions  * Block interrupts during mcount so that those interrupts can also be
21*43a90889SApple OSS Distributions  * counted (as soon as we get done with the current counting).  On the
22*43a90889SApple OSS Distributions  * arm platfom, can't do splhigh/splx as those are C routines and can
23*43a90889SApple OSS Distributions  * recursively invoke mcount.
24*43a90889SApple OSS Distributions  */
25*43a90889SApple OSS Distributions #warning MCOUNT_* not implemented yet.
26*43a90889SApple OSS Distributions 
27*43a90889SApple OSS Distributions #define MCOUNT_INIT
28*43a90889SApple OSS Distributions #define MCOUNT_ENTER    /* s = splhigh(); */ /* XXX TODO */
29*43a90889SApple OSS Distributions #define MCOUNT_EXIT     /* (void) splx(s); */ /* XXX TODO */
30*43a90889SApple OSS Distributions 
31*43a90889SApple OSS Distributions #endif /* __APPLE_API_UNSTABLE */
32*43a90889SApple OSS Distributions #endif /* KERNEL */
33*43a90889SApple OSS Distributions 
34*43a90889SApple OSS Distributions #endif /* defined (__arm__) || defined (__arm64__) */
35*43a90889SApple OSS Distributions 
36*43a90889SApple OSS Distributions #endif /* _BSD_ARM_PROFILE_H_ */
37