From 283ba8210aec6d5924aa7a6a3b3cbf0ece57768e Mon Sep 17 00:00:00 2001 From: marcel Date: Wed, 25 Aug 2004 08:03:48 +0000 Subject: Get a step closer to profiling the kernel by fixing the definitions of the MCOUNT_ENTER, MCOUNT_EXIT and MCOUNT_DECL defines. Also make sure there's a prototype of _MCOUNT_DECL(). This allows us to build a kernel. There are still unresolved symbols, so linking fails. --- sys/ia64/include/profile.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sys/ia64/include') diff --git a/sys/ia64/include/profile.h b/sys/ia64/include/profile.h index 6c06e07..9c15d00 100644 --- a/sys/ia64/include/profile.h +++ b/sys/ia64/include/profile.h @@ -37,11 +37,11 @@ typedef unsigned long fptrdiff_t; /* * The following two macros do splhigh and splx respectively. */ -#define MCOUNT_ENTER(s) \n\ - _c = intr_disable() -#define MCOUNT_EXIT(s) \n\ - intr_restore(_c) -#define MCOUNT_DECL(s) register_t c; +#define MCOUNT_ENTER(s) s = intr_disable() +#define MCOUNT_EXIT(s) intr_restore(s) +#define MCOUNT_DECL(s) register_t s; + +_MCOUNT_DECL(uintfptr_t, uintfptr_t); #else /* !_KERNEL */ -- cgit v1.1