Temporarily define MCOUNT as a dummy for _RUMPKERNEL to allow build
to proceed - the MD macros use processor instructions unavailable to userspace and should/could be provided as interfaces.
This commit is contained in:
parent
02513c1f9c
commit
1ce853369b
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: mcount.c,v 1.7 2006/10/27 22:14:13 uwe Exp $ */
|
||||
/* $NetBSD: mcount.c,v 1.8 2009/01/05 18:06:57 pooka Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2003, 2004 Wasabi Systems, Inc.
|
||||
@ -76,7 +76,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)mcount.c 8.1 (Berkeley) 6/4/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: mcount.c,v 1.7 2006/10/27 22:14:13 uwe Exp $");
|
||||
__RCSID("$NetBSD: mcount.c,v 1.8 2009/01/05 18:06:57 pooka Exp $");
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@ -99,6 +99,16 @@ _MCOUNT_DECL __P((u_long, u_long))
|
||||
#endif
|
||||
__used;
|
||||
|
||||
/* XXX: make these interfaces */
|
||||
#ifdef _RUMPKERNEL
|
||||
#undef MCOUNT_ENTER
|
||||
#define MCOUNT_ENTER
|
||||
#undef MCOUNT_EXIT
|
||||
#define MCOUNT_EXIT
|
||||
#undef MCOUNT
|
||||
#define MCOUNT
|
||||
#endif
|
||||
|
||||
/*
|
||||
* mcount is called on entry to each function compiled with the profiling
|
||||
* switch set. _mcount(), which is declared in a machine-dependent way
|
||||
@ -121,7 +131,7 @@ _MCOUNT_DECL(frompc, selfpc) /* _mcount; may be static, inline, etc */
|
||||
struct tostruct *top, *prevtop;
|
||||
struct gmonparam *p;
|
||||
long toindex;
|
||||
#ifdef _KERNEL
|
||||
#if defined(_KERNEL) && !defined(_RUMPKERNEL)
|
||||
int s;
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user