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.
This commit is contained in:
marcel 2004-08-25 08:03:48 +00:00
parent 78fb531c2c
commit 283ba8210a

View File

@ -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 */