diff options
author | marcel <marcel@FreeBSD.org> | 2004-08-25 08:03:48 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2004-08-25 08:03:48 +0000 |
commit | 283ba8210aec6d5924aa7a6a3b3cbf0ece57768e (patch) | |
tree | 035341cf2bcfe54d0a76367a78ab456dacb21736 /sys/ia64/include | |
parent | 78fb531c2c08ee66f6a231d871715c83199da94b (diff) | |
download | FreeBSD-src-283ba8210aec6d5924aa7a6a3b3cbf0ece57768e.zip FreeBSD-src-283ba8210aec6d5924aa7a6a3b3cbf0ece57768e.tar.gz |
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.
Diffstat (limited to 'sys/ia64/include')
-rw-r--r-- | sys/ia64/include/profile.h | 10 |
1 files changed, 5 insertions, 5 deletions
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 */ |