X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/4d15aeb193b2c68f1d38666c317f8d3734f5f083..5ba3f43ea354af8ad55bea84372a2bc834d8757c:/bsd/arm/profile.h diff --git a/bsd/arm/profile.h b/bsd/arm/profile.h new file mode 100644 index 000000000..728d3f99b --- /dev/null +++ b/bsd/arm/profile.h @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2000-2007 Apple Inc. All rights reserved. + */ +/* + * Copyright (c) 1997, Apple Computer, Inc. All rights reserved. + * + */ + +#ifndef _BSD_ARM_PROFILE_H_ +#define _BSD_ARM_PROFILE_H_ + +#include + +#ifdef KERNEL +#ifdef __APPLE_API_UNSTABLE + +/* + * Block interrupts during mcount so that those interrupts can also be + * counted (as soon as we get done with the current counting). On the + * arm platfom, can't do splhigh/splx as those are C routines and can + * recursively invoke mcount. + */ +#warning MCOUNT_* not implemented yet. + +#define MCOUNT_INIT +#define MCOUNT_ENTER /* s = splhigh(); */ /* XXX TODO */ +#define MCOUNT_EXIT /* (void) splx(s); */ /* XXX TODO */ + +#endif /* __APPLE_API_UNSTABLE */ +#endif /* KERNEL */ + +#endif /* _BSD_ARM_PROFILE_H_ */