summaryrefslogtreecommitdiffstats
path: root/sys/ia64
diff options
context:
space:
mode:
Diffstat (limited to 'sys/ia64')
-rw-r--r--sys/ia64/include/profile.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/sys/ia64/include/profile.h b/sys/ia64/include/profile.h
index 9c15d00..91b14e2 100644
--- a/sys/ia64/include/profile.h
+++ b/sys/ia64/include/profile.h
@@ -26,6 +26,9 @@
* $FreeBSD$
*/
+#ifndef _MACHINE_PROFILE_H_
+#define _MACHINE_PROFILE_H_
+
#define _MCOUNT_DECL void __mcount
#define MCOUNT
@@ -41,6 +44,16 @@ typedef unsigned long fptrdiff_t;
#define MCOUNT_EXIT(s) intr_restore(s)
#define MCOUNT_DECL(s) register_t s;
+void bintr(void);
+void btrap(void);
+void eintr(void);
+void user(void);
+
+#define MCOUNT_FROMPC_USER(pc) \
+ ((pc < (uintfptr_t)VM_MAXUSER_ADDRESS) ? ~0UL : pc)
+
+#define MCOUNT_FROMPC_INTR(pc) (~0UL)
+
_MCOUNT_DECL(uintfptr_t, uintfptr_t);
#else /* !_KERNEL */
@@ -48,3 +61,5 @@ _MCOUNT_DECL(uintfptr_t, uintfptr_t);
typedef unsigned long uintfptr_t;
#endif
+
+#endif /* _MACHINE_PROFILE_H_ */
OpenPOWER on IntegriCloud