]> git.saurik.com Git - apple/xnu.git/blame - bsd/arm/profile.h
xnu-4903.221.2.tar.gz
[apple/xnu.git] / bsd / arm / profile.h
CommitLineData
5ba3f43e
A
1/*
2 * Copyright (c) 2000-2007 Apple Inc. All rights reserved.
3 */
4/*
5 * Copyright (c) 1997, Apple Computer, Inc. All rights reserved.
6 *
7 */
8
9#ifndef _BSD_ARM_PROFILE_H_
10#define _BSD_ARM_PROFILE_H_
11
12#include <sys/appleapiopts.h>
13
14#ifdef KERNEL
15#ifdef __APPLE_API_UNSTABLE
16
17/*
18 * Block interrupts during mcount so that those interrupts can also be
19 * counted (as soon as we get done with the current counting). On the
20 * arm platfom, can't do splhigh/splx as those are C routines and can
21 * recursively invoke mcount.
22 */
23#warning MCOUNT_* not implemented yet.
24
25#define MCOUNT_INIT
26#define MCOUNT_ENTER /* s = splhigh(); */ /* XXX TODO */
27#define MCOUNT_EXIT /* (void) splx(s); */ /* XXX TODO */
28
29#endif /* __APPLE_API_UNSTABLE */
30#endif /* KERNEL */
31
32#endif /* _BSD_ARM_PROFILE_H_ */